aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-13 00:46:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-13 01:43:09 +0200
commit443b29e475a63cbfc573bddf46c4cb5ce7b5f461 (patch)
treea6e2a5ff4d153d98b454d15695725d510f027885 /libavcodec/h264.c
parent28aed88b7368f63bcf3565a918f7b73498168ac1 (diff)
downloadffmpeg-443b29e475a63cbfc573bddf46c4cb5ce7b5f461.tar.gz
h264: Try parsing SPS as complete NAL in more cases
Fixes Ticket2580 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index efce095da0..233a7c844f 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4777,7 +4777,7 @@ again:
break;
case NAL_SPS:
init_get_bits(&h->gb, ptr, bit_length);
- if (ff_h264_decode_seq_parameter_set(h) < 0 && (h->is_avc ? (nalsize != consumed) && nalsize : 1)) {
+ if (ff_h264_decode_seq_parameter_set(h) < 0 && (h->is_avc ? nalsize : 1)) {
av_log(h->avctx, AV_LOG_DEBUG,
"SPS decoding failure, trying again with the complete NAL\n");
if (h->is_avc)