Opened 10 years ago

Closed 10 years ago

#4445 closed defect (fixed)

H264 with VUI overread fails to decode

Reported by: Michael Niedermayer Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

This has been reported by Vittorio Giovara to me privately, But he is unable to provide a sample file. "Its a mov file, MSNV profile mainly"

the failure of VUI parsing results in a lack of a SPS which leads to failure all slice decoding

[h264 @ 0x7fd1b5000000] Overread VUI by 8 bits
    Last message repeated 1 times
[h264 @ 0x7fd1b5000000] sps_id 0 out of range
[h264 @ 0x7fd1b5000000] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[h264 @ 0x7fd1b5000000] non-existing PPS 0 referenced
[h264 @ 0x7fd1b5000000] decode_slice_header error
[h264 @ 0x7fd1b5000000] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1b4005200] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1b4005200] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 12255 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'overread_vui.mp4':
  Metadata:
    major_brand     : MSNV
    minor_version   : 16786688
    compatible_brands: MSNVisommp42
    creation_time   : 2015-04-06 05:52:20
  Duration: 00:03:16.40, start: 0.021333, bitrate: 12481 kb/s
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 12255 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2015-04-06 05:52:20
      handler_name    : Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 224 kb/s (default)
    Metadata:
      creation_time   : 2015-04-06 05:52:20
      handler_name    : Sound Media Handler
[h264 @ 0x7fd1b510c600] Overread VUI by 8 bits
    Last message repeated 1 times
[h264 @ 0x7fd1b510c600] sps_id 0 out of range

Attachments (1)

0001-h264-Do-not-fail-on-unsupported-timing-info.patch (1.2 KB ) - added by projectsymphony 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by projectsymphony, 10 years ago

in reply to:  1 ; comment:2 by Timothy Gu, 10 years ago

Replying to projectsymphony:

regression since ac3fa95e73e52179c52cb0f117c06cdbaced6893

I'm confused. ac3fa95e73e52179c52cb0f117c06cdbaced6893 is a cosmetic-only commit for FFmpeg…

in reply to:  2 comment:3 by projectsymphony, 10 years ago

Replying to Timothy_Gu:

Replying to projectsymphony:

regression since ac3fa95e73e52179c52cb0f117c06cdbaced6893

I'm confused. ac3fa95e73e52179c52cb0f117c06cdbaced6893 is a cosmetic-only commit for FFmpeg…

No, it is not, it's a merge commit where what would have made all the samples work has been reverted.

comment:4 by Michael Niedermayer, 10 years ago

Can you try if this fixes it ?

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index b4c4cd9..5669da5 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1629,7 +1629,9 @@ 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 : 1)) {
+                if (ff_h264_decode_seq_parameter_set(h, 0) >= 0)
+                    break;
+                if (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)
@@ -1638,8 +1640,11 @@ again:
                         break;
                     init_get_bits(&h->gb, &buf[buf_index + 1 - consumed],
                                   8*(next_avc - buf_index + consumed - 1));
-                    ff_h264_decode_seq_parameter_set(h);
+                    if (ff_h264_decode_seq_parameter_set(h, 0) >= 0)
+                        break;
                 }
+                init_get_bits(&h->gb, ptr, bit_length);
+                ff_h264_decode_seq_parameter_set(h, 1);
 
                 break;
             case NAL_PPS:
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 29bb3fb..8cee11f 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -812,7 +812,7 @@ int ff_h264_decode_sei(H264Context *h);
 /**
  * Decode SPS
  */
-int ff_h264_decode_seq_parameter_set(H264Context *h);
+int ff_h264_decode_seq_parameter_set(H264Context *h, int ignore_truncation);
 
 /**
  * compute profile from sps
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 516c68f..19d1aa3 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -282,7 +282,7 @@ static inline int parse_nal_units(AVCodecParserContext *s,
         init_get_bits(&h->gb, ptr, 8 * dst_length);
         switch (h->nal_unit_type) {
         case NAL_SPS:
-            ff_h264_decode_seq_parameter_set(h);
+            ff_h264_decode_seq_parameter_set(h, 0);
             break;
         case NAL_PPS:
             ff_h264_decode_picture_parameter_set(h, h->gb.size_in_bits);
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index ac316ac..490cd20 100644
--- a/libavcodec/h264_ps.c
+++ b/libavcodec/h264_ps.c
@@ -297,7 +297,7 @@ static void decode_scaling_matrices(H264Context *h, SPS *sps,
     }
 }
 
-int ff_h264_decode_seq_parameter_set(H264Context *h)
+int ff_h264_decode_seq_parameter_set(H264Context *h, int ignore_truncation)
 {
     int profile_idc, level_idc, constraint_set_flags = 0;
     unsigned int sps_id;
@@ -518,9 +518,10 @@ int ff_h264_decode_seq_parameter_set(H264Context *h)
     }
 
     if (get_bits_left(&h->gb) < 0) {
-        av_log(h->avctx, AV_LOG_ERROR,
+        av_log(h->avctx, ignore_truncation ? AV_LOG_WARNING : AV_LOG_ERROR,
                "Overread %s by %d bits\n", sps->vui_parameters_present_flag ? "VUI" : "SPS", -get_bits_left(&h->gb));
-        goto fail;
+        if (!ignore_truncation)
+            goto fail;
     }
 
     if (!sps->sar.den)

comment:5 by projectsymphony, 10 years ago

this patch works fine, thank you

comment:6 by Michael Niedermayer, 10 years ago

Resolution: fixed
Status: newclosed

comment:7 by projectsymphony, 10 years ago

Resolution: fixed
Status: closedreopened

Partially related to this, a sample which reports

[h264 @ 0x7fcff900d600] time_scale/num_units_in_tick invalid or unsupported (0/2)

triggers the same problem (unreferenced sps/pps). Skipping the immediate return at h264_ps.c:200 makes the video work again. The error is correct since time_scale and num_units_in_tick need to be > 0, however it might be overkill to block decoding in my opinion: I prepared a patch that ignores the error and sets the present_flag to 0, so that those values are not used at all.

Unfortunately sample is not available, but I know the source: it's coming from a windows phone recording

Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv), 144x176, 46 kb/s, 6.64 fps, 10 tbr, 10k tbn, 20k tbc (default)

comment:8 by Michael Niedermayer, 10 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.