History

avcodec/zmbvenc: Simplify setting keyframe flag

Andreas Rheinhardt committed 5 years ago

Commit 4e8d2241 parent 86a71d81 file · +1 −1Browse files

Unified · Split

libavcodec/zmbvenc.c+1−1
@@ -288,10 +288,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 287 unmodified lines
288 *buf++ = c->fmt; // format288 *buf++ = c->fmt; // format
289 *buf++ = ZMBV_BLOCK; // block width289 *buf++ = ZMBV_BLOCK; // block width
290 *buf++ = ZMBV_BLOCK; // block height290 *buf++ = ZMBV_BLOCK; // block height
291 pkt->flags |= AV_PKT_FLAG_KEY;
291 }292 }
292 memcpy(buf, c->comp_buf, c->zstream.total_out);293 memcpy(buf, c->comp_buf, c->zstream.total_out);
293 294
294 pkt->flags |= AV_PKT_FLAG_KEY*keyframe;
295 *got_packet = 1;295 *got_packet = 1;
296 296
297 return 0;297 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t