[FFmpeg-cvslog] avcodec/zmbvenc: Simplify setting keyframe flag
Andreas Rheinhardt
git at videolan.org
Thu Apr 29 03:55:32 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Apr 24 21:46:09 2021 +0200| [4e8d22478bc854949a9adbda97348f2997e1dc8d] | committer: Andreas Rheinhardt
avcodec/zmbvenc: Simplify setting keyframe flag
Reviewed-by: Tomas Härdin <tjoppen at acc.umu.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e8d22478bc854949a9adbda97348f2997e1dc8d
---
libavcodec/zmbvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c
index 27d2954352..68618f77e9 100644
--- a/libavcodec/zmbvenc.c
+++ b/libavcodec/zmbvenc.c
@@ -288,10 +288,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
*buf++ = c->fmt; // format
*buf++ = ZMBV_BLOCK; // block width
*buf++ = ZMBV_BLOCK; // block height
+ pkt->flags |= AV_PKT_FLAG_KEY;
}
memcpy(buf, c->comp_buf, c->zstream.total_out);
- pkt->flags |= AV_PKT_FLAG_KEY*keyframe;
*got_packet = 1;
return 0;
More information about the ffmpeg-cvslog
mailing list