aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-03 01:56:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-03 01:56:47 +0100
commit211372e86dbf73505bd981dec7ad755e0623d22d (patch)
tree27a35eb4258535fae20b01dc57f5df8f1bcd3d78 /libavcodec/h264.c
parent9c208b404cbd56ee4e217aa20e7e09ebfa21cfd5 (diff)
parent0b300daad2f5cb59a7c06dde5ac701685e6edf16 (diff)
downloadffmpeg-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.c5
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