mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
fix VP9 packet decoder returning 0 instead of the used data size
See https://trac.videolan.org/vlc/ticket/14022#comment:6 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2578a54618
commit
4851db80a4
@ -3760,7 +3760,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
|
||||
if ((res = av_frame_ref(frame, s->refs[ref].f)) < 0)
|
||||
return res;
|
||||
*got_frame = 1;
|
||||
return 0;
|
||||
return pkt->size;
|
||||
}
|
||||
data += res;
|
||||
size -= res;
|
||||
@ -3984,7 +3984,7 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
|
||||
*got_frame = 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return pkt->size;
|
||||
}
|
||||
|
||||
static void vp9_decode_flush(AVCodecContext *ctx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user