Skip to content

Commit 443b29e

Browse files
committed
h264: Try parsing SPS as complete NAL in more cases
Fixes Ticket2580 Signed-off-by: Michael Niedermayer <[email protected]>
1 parent 28aed88 commit 443b29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavcodec/h264.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4777,7 +4777,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
47774777
break;
47784778
case NAL_SPS:
47794779
init_get_bits(&h->gb, ptr, bit_length);
4780-
if (ff_h264_decode_seq_parameter_set(h) < 0 && (h->is_avc ? (nalsize != consumed) && nalsize : 1)) {
4780+
if (ff_h264_decode_seq_parameter_set(h) < 0 && (h->is_avc ? nalsize : 1)) {
47814781
av_log(h->avctx, AV_LOG_DEBUG,
47824782
"SPS decoding failure, trying again with the complete NAL\n");
47834783
if (h->is_avc)

0 commit comments

Comments
 (0)