diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-29 20:16:07 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-09 08:44:11 +0100 |
commit | d4f0f2d1e80b76260eb6b9cdde472ac069dfda56 (patch) | |
tree | 2cfdde3d2b8655f1afa782be9e5341911847df64 /libavcodec/utils.c | |
parent | e5419709f50593769037ab77d7102f82d9260784 (diff) | |
download | ffmpeg-d4f0f2d1e80b76260eb6b9cdde472ac069dfda56.tar.gz |
lavc: use buf[0] instead of data[0] as the indicator of an allocated frame
data[0] may be NULL for valid frames with hwaccel pixel formats.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 37f4979f6a..d1a1510858 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1416,7 +1416,7 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi emms_c(); //needed to avoid an emms_c() call before every return; - if (ret < 0 && picture->data[0]) + if (ret < 0 && picture->buf[0]) av_frame_unref(picture); if (*got_picture_ptr) { |