Fixes Ticket2022
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit dae38a66ebd8a71aad51a29311f1c50df3ae3a2e)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -406,7 +406,7 @@ static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, |
406 | 406 |
|
407 | 407 |
*picture = ctx->picture; |
408 | 408 |
*got_frame = 1; |
409 |
- return buf_size; |
|
409 |
+ return avpkt->size; |
|
410 | 410 |
} |
411 | 411 |
|
412 | 412 |
static av_cold int dnxhd_decode_close(AVCodecContext *avctx) |