mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 20:37:04 +00: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>
(cherry picked from commit 4851db80a4
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a80b38d7d2
commit
2a6f0c7e07
@ -3747,7 +3747,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;
|
||||
@ -3957,7 +3957,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…
Reference in New Issue
Block a user