diff options
Diffstat (limited to 'libavcodec/tscc2.c')
-rw-r--r-- | libavcodec/tscc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 5ff15656ce..6879f42cd9 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -205,7 +205,7 @@ static int tscc2_decode_slice(TSCC2Context *c, int mb_y, return 0; } -static int tscc2_decode_frame(AVCodecContext *avctx, void *data, +static int tscc2_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; @@ -313,7 +313,7 @@ static int tscc2_decode_frame(AVCodecContext *avctx, void *data, } *got_frame = 1; - if ((ret = av_frame_ref(data, c->pic)) < 0) + if ((ret = av_frame_ref(rframe, c->pic)) < 0) return ret; /* always report that the buffer was completely consumed */ |