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
288288 *buf++ = c->fmt; // format
289289 *buf++ = ZMBV_BLOCK; // block width
290290 *buf++ = ZMBV_BLOCK; // block height
291+ pkt->flags |= AV_PKT_FLAG_KEY;
291292 }
292293 memcpy(buf, c->comp_buf, c->zstream.total_out);
293294
294− pkt->flags |= AV_PKT_FLAG_KEY*keyframe;
295295 *got_packet = 1;
296296
297297 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