diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-03 01:56:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-03 01:56:47 +0100 |
commit | 211372e86dbf73505bd981dec7ad755e0623d22d (patch) | |
tree | 27a35eb4258535fae20b01dc57f5df8f1bcd3d78 /libavcodec/h264.c | |
parent | 9c208b404cbd56ee4e217aa20e7e09ebfa21cfd5 (diff) | |
parent | 0b300daad2f5cb59a7c06dde5ac701685e6edf16 (diff) | |
download | ffmpeg-211372e86dbf73505bd981dec7ad755e0623d22d.tar.gz |
Merge commit '0b300daad2f5cb59a7c06dde5ac701685e6edf16'
* commit '0b300daad2f5cb59a7c06dde5ac701685e6edf16':
h264: error out on unset current_picture_ptr for h->current_slice > 0
avprobe: report per stream bit rate if set by the decoder
aac: avoid a memcpy in sbr_qmf_analysis
Conflicts:
avprobe.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index b07c3cb143..e6730757b3 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2709,6 +2709,11 @@ static int decode_slice_header(H264Context *h, H264Context *h0) s->picture_structure = last_pic_structure; s->dropable = last_pic_dropable; return AVERROR_INVALIDDATA; + } else if (!s->current_picture_ptr) { + av_log(s->avctx, AV_LOG_ERROR, + "unset current_picture_ptr on %d. slice\n", + h0->current_slice + 1); + return AVERROR_INVALIDDATA; } } else { /* Shorten frame num gaps so we don't have to allocate reference |