diff options
Diffstat (limited to 'libavcodec/v210x.c')
-rw-r--r-- | libavcodec/v210x.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/v210x.c b/libavcodec/v210x.c index 900281a0c4..f973124122 100644 --- a/libavcodec/v210x.c +++ b/libavcodec/v210x.c @@ -40,7 +40,8 @@ static av_cold int decode_init(AVCodecContext *avctx) return 0; } -static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) +static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, + AVPacket *avpkt) { int y=0; int width= avctx->width; @@ -121,7 +122,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac } } - *data_size=sizeof(AVFrame); + *got_frame = 1; *(AVFrame*)data= *avctx->coded_frame; return avpkt->size; |