You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/clearvideo: do not try to return frame when it is same as previous one
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -516,11 +516,8 @@ static int clv_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
frame_type = bytestream2_get_byte(&gb);
|
frame_type = bytestream2_get_byte(&gb);
|
||||||
|
|
||||||
if ((frame_type & 0x7f) == 0x30) {
|
if ((frame_type & 0x7f) == 0x30) {
|
||||||
if ((ret = ff_reget_buffer(avctx, c->pic)) < 0)
|
*got_frame = 0;
|
||||||
return ret;
|
return buf_size;
|
||||||
|
|
||||||
c->pic->key_frame = 0;
|
|
||||||
c->pic->pict_type = AV_PICTURE_TYPE_P;
|
|
||||||
} else if (frame_type & 0x2) {
|
} else if (frame_type & 0x2) {
|
||||||
if (buf_size < c->mb_width * c->mb_height) {
|
if (buf_size < c->mb_width * c->mb_height) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Packet too small\n");
|
av_log(avctx, AV_LOG_ERROR, "Packet too small\n");
|
||||||
|
Reference in New Issue
Block a user