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:

committed by
Michael Niedermayer

parent
e6bc1fe10c
commit
55637b2e5e
@@ -3748,7 +3748,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;
|
||||
@@ -3972,7 +3972,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)
|
||||
|
Reference in New Issue
Block a user