aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-05 23:30:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-02 22:59:50 +0200
commitfb7e76d1cfc516b6d6eff36ba0efb1c983acb86a (patch)
tree4ad68c265bd84992f738dbb3764f9d6c2d2fc1f5 /libavcodec/svq3.c
parent96047b3150c4b918257ed50bfeecae0e4e43c362 (diff)
downloadffmpeg-fb7e76d1cfc516b6d6eff36ba0efb1c983acb86a.tar.gz
avcodec/svq3: Fix "incompatible pointer type" warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 89d2fc62db985263fdbfb1f44b23e98d24d77c9e) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index f41fa599c3..d3c5672d42 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -1187,7 +1187,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
if (h->pict_type != AV_PICTURE_TYPE_I) {
if (!s->last_pic->f.data[0]) {
av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
- av_frame_unref(s->last_pic);
+ av_frame_unref(&s->last_pic->f);
ret = get_buffer(avctx, s->last_pic);
if (ret < 0)
return ret;
@@ -1200,7 +1200,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
if (h->pict_type == AV_PICTURE_TYPE_B && !s->next_pic->f.data[0]) {
av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
- av_frame_unref(s->next_pic);
+ av_frame_unref(&s->next_pic->f);
ret = get_buffer(avctx, s->next_pic);
if (ret < 0)
return ret;