diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-04-17 12:09:50 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-04-29 05:52:58 +0200 |
commit | a0f2946068c62e18cb05ac25c0df3d86077251a6 (patch) | |
tree | 0b50e018335447012922f2e059b25f89405e4d94 /libavcodec/vda_h264.c | |
parent | 7a4f74eed51f914e9bbfebaffd4a92ac6791f819 (diff) | |
download | ffmpeg-a0f2946068c62e18cb05ac25c0df3d86077251a6.tar.gz |
h264: use properly allocated AVFrames
Diffstat (limited to 'libavcodec/vda_h264.c')
-rw-r--r-- | libavcodec/vda_h264.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c index acefde67af..3c0775b15a 100644 --- a/libavcodec/vda_h264.c +++ b/libavcodec/vda_h264.c @@ -129,7 +129,7 @@ static int vda_old_h264_end_frame(AVCodecContext *avctx) H264Context *h = avctx->priv_data; VDAContext *vda = avctx->internal->hwaccel_priv_data; struct vda_context *vda_ctx = avctx->hwaccel_context; - AVFrame *frame = &h->cur_pic_ptr->f; + AVFrame *frame = h->cur_pic_ptr->f; int status; if (!vda_ctx->decoder || !vda->bitstream) @@ -325,7 +325,7 @@ static int vda_h264_end_frame(AVCodecContext *avctx) H264Context *h = avctx->priv_data; VDAContext *vda = avctx->internal->hwaccel_priv_data; AVVDAContext *vda_ctx = avctx->hwaccel_context; - AVFrame *frame = &h->cur_pic_ptr->f; + AVFrame *frame = h->cur_pic_ptr->f; uint32_t flush_flags = 1 << 0; ///< kVDADecoderFlush_emitFrames CFDataRef coded_frame; OSStatus status; |