summaryrefslogtreecommitdiff
path: root/libavcodec/clearvideo.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-04-24 17:10:26 +0200
committerPaul B Mahol <onemda@gmail.com>2018-04-24 17:10:26 +0200
commite34751cb8a1d2dede869f6e69730e53e06caf922 (patch)
treef43f02d5a086f2f6b5aefe15c345c6b9fc4804f2 /libavcodec/clearvideo.c
parentd9706f79c17a33bf97e51a7d6ab211ce83a463ee (diff)
downloadffmpeg-e34751cb8a1d2dede869f6e69730e53e06caf922.tar.gz
avcodec/clearvideo: do not try to return frame when it is same as previous one
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/clearvideo.c')
-rw-r--r--libavcodec/clearvideo.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/clearvideo.c b/libavcodec/clearvideo.c
index 6061cb571e..b4bfa3bda3 100644
--- a/libavcodec/clearvideo.c
+++ b/libavcodec/clearvideo.c
@@ -516,11 +516,8 @@ static int clv_decode_frame(AVCodecContext *avctx, void *data,
frame_type = bytestream2_get_byte(&gb);
if ((frame_type & 0x7f) == 0x30) {
- if ((ret = ff_reget_buffer(avctx, c->pic)) < 0)
- return ret;
-
- c->pic->key_frame = 0;
- c->pic->pict_type = AV_PICTURE_TYPE_P;
+ *got_frame = 0;
+ return buf_size;
} else if (frame_type & 0x2) {
if (buf_size < c->mb_width * c->mb_height) {
av_log(avctx, AV_LOG_ERROR, "Packet too small\n");