diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-13 23:44:01 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-14 00:09:01 +0100 |
commit | c13e4e288c84ba0629ead15e1460c0e498ee2bce (patch) | |
tree | d676d5647f2aa8f880ba58c5a9e99ca113c34594 /libavcodec/h264.c | |
parent | 2d8d63a9a07c8dca3587bd2a7b3ac56b2cbbeb24 (diff) | |
download | ffmpeg-c13e4e288c84ba0629ead15e1460c0e498ee2bce.tar.gz |
h264: fix () placement
Fixes null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 1197a65a85..3b7ad98b99 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2589,7 +2589,7 @@ static int h264_slice_header_init(H264Context *h, int reinit) return ret; } } else { - if ((ret = ff_MPV_common_init(s) < 0)) { + if ((ret = ff_MPV_common_init(s)) < 0) { av_log(h->s.avctx, AV_LOG_ERROR, "ff_MPV_common_init() failed.\n"); return ret; } |