Opened 13 years ago

Closed 13 years ago

#697 closed defect (fixed)

Some H.264 cannot decoded

Reported by: K.Y.H Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: h264 regression
Cc: Anatoly Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by Carl Eugen Hoyos)

http://www.gokuai.com/f/Ap04i705z8902L84
This file cannot decoded.

This problem can fixing by...

h264_ps.c's line 582..

if(bits_left > 0 && more_rbsp_data_in_pps(h, pps)){
->
if(bits_left && (bits_left > 8 || show_bits(&s->gb, bits_left) != 1 << (bits_left - 1))) {

Attachments (1)

patchticket697.diff (822 bytes ) - added by Carl Eugen Hoyos 13 years ago.

Download all attachments as: .zip

Change History (3)

by Carl Eugen Hoyos, 13 years ago

Attachment: patchticket697.diff added

comment:1 by Carl Eugen Hoyos, 13 years ago

Cc: Anatoly added
Description: modified (diff)
Keywords: regression added
Reproduced by developer: set
Status: newopen

Your patch breaks the sample from ticket #685.

For future bugreports:
Please always add a command line (ffmpeg if possible) that allows to reproduce the problem, and please add complete, uncut console output for that command.

$ ffmpeg -i Deep%20Blue.ts
ffmpeg version N-35328-gf3f4884, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec  1 2011 16:28:50 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 29. 1 / 51. 29. 1
  libavcodec   53. 39. 1 / 53. 39. 1
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 50. 0 /  2. 50. 0
  libswscale    2.  1. 0 /  2.  1. 0
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
    Last message repeated 1 times
[h264 @ 0x13a06a0] Increasing reorder buffer to 1
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 56 0, bytestream (9927)
[h264 @ 0x13a06a0] top block unavailable for requested intra mode at 57 13
[h264 @ 0x13a06a0] error while decoding MB 57 12, bytestream (9842)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 46 24, bytestream (10918)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 30 36, bytestream (12218)
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 59 48, bytestream (13658)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 57 60, bytestream (16495)
[h264 @ 0x13a06a0] concealing 6087 DC, 6087 AC, 6087 MV errors
[h264 @ 0x13a06a0] top block unavailable for requested intra mode at 3 0
[h264 @ 0x13a06a0] error while decoding MB 3 0, bytestream (22977)
[h264 @ 0x13a06a0] top block unavailable for requested intra mode at 1 12
[h264 @ 0x13a06a0] error while decoding MB 1 12, bytestream (22751)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 1 24
[h264 @ 0x13a06a0] error while decoding MB 1 24, bytestream (26042)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 6 36, bytestream (24881)
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 8 48, bytestream (26187)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 1 60, bytestream (23871)
[h264 @ 0x13a06a0] concealing 6120 DC, 6120 AC, 6120 MV errors
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 10 0, bytestream (10038)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 5 12, bytestream (9709)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 1 60, bytestream (15326)
[h264 @ 0x13a06a0] concealing 6011 DC, 6011 AC, 6011 MV errors
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
    Last message repeated 1 times
[h264 @ 0x13a06a0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x13a06a0] error while decoding MB 0 0, bytestream (10530)
[h264 @ 0x13a06a0] top block unavailable for requested intra mode at 7 24
[h264 @ 0x13a06a0] error while decoding MB 7 24, bytestream (11766)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 31 36, bytestream (12136)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 5 60, bytestream (14217)
[h264 @ 0x13a06a0] concealing 6094 DC, 6094 AC, 6094 MV errors
[h264 @ 0x13a06a0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x13a06a0] error while decoding MB 0 0, bytestream (25567)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 6 12, bytestream (25577)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 6 26, bytestream (26044)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 11 36, bytestream (26589)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 16 48, bytestream (27233)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 9 60, bytestream (21771)
[h264 @ 0x13a06a0] concealing 5983 DC, 5983 AC, 5983 MV errors
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 63 12, bytestream (10262)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 2 24, bytestream (11825)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 3 36
[h264 @ 0x13a06a0] error while decoding MB 3 36, bytestream (12059)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 4 60, bytestream (12968)
[h264 @ 0x13a06a0] concealing 5650 DC, 5650 AC, 5650 MV errors
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
    Last message repeated 1 times
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 27 36, bytestream (11800)
[h264 @ 0x13a06a0] Reference 6 >= 2
[h264 @ 0x13a06a0] error while decoding MB 5 48, bytestream (13544)
[h264 @ 0x13a06a0] Reference 5 >= 2
[h264 @ 0x13a06a0] error while decoding MB 17 60, bytestream (12368)
[h264 @ 0x13a06a0] concealing 5805 DC, 5805 AC, 5805 MV errors
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 2 0, bytestream (26576)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 57 12, bytestream (25592)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 2 24, bytestream (27739)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 6 36, bytestream (27941)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 9 48, bytestream (27655)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 11 60
[h264 @ 0x13a06a0] error while decoding MB 11 60, bytestream (20694)
[h264 @ 0x13a06a0] concealing 6112 DC, 6112 AC, 6112 MV errors
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 4 12, bytestream (10216)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 3 24, bytestream (11170)
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 16 36, bytestream (11667)
[h264 @ 0x13a06a0] left block unavailable for requested intra mode at 0 49
[h264 @ 0x13a06a0] error while decoding MB 0 48, bytestream (13640)
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 5 60, bytestream (10881)
[h264 @ 0x13a06a0] concealing 6116 DC, 6116 AC, 6116 MV errors
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
    Last message repeated 1 times
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 22 0, bytestream (10122)
[h264 @ 0x13a06a0] Reference 7 >= 2
[h264 @ 0x13a06a0] error while decoding MB 17 12, bytestream (10850)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 11 24, bytestream (11693)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 1 36, bytestream (12078)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 6 48, bytestream (13545)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 16 60, bytestream (10252)
[h264 @ 0x13a06a0] concealing 6120 DC, 6120 AC, 6120 MV errors
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 0 0
[h264 @ 0x13a06a0] error while decoding MB 0 0, bytestream (24696)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 0 12
[h264 @ 0x13a06a0] error while decoding MB 0 12, bytestream (24643)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 0 24
[h264 @ 0x13a06a0] error while decoding MB 0 24, bytestream (25143)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 0 36
[h264 @ 0x13a06a0] error while decoding MB 0 36, bytestream (25051)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 0 48
[h264 @ 0x13a06a0] error while decoding MB 0 48, bytestream (24783)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 0 60
[h264 @ 0x13a06a0] error while decoding MB 0 60, bytestream (17964)
[h264 @ 0x13a06a0] concealing 6120 DC, 6120 AC, 6120 MV errors
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 2 0, bytestream (9653)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 4 24, bytestream (10266)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 25 36
[h264 @ 0x13a06a0] error while decoding MB 25 36, bytestream (10730)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 2 48, bytestream (12756)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 8 60, bytestream (10184)
[h264 @ 0x13a06a0] concealing 6090 DC, 6090 AC, 6090 MV errors
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
    Last message repeated 1 times
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 3 0, bytestream (10506)
[h264 @ 0x13a06a0] top block unavailable for requested intra mode at 1 12
[h264 @ 0x13a06a0] error while decoding MB 1 12, bytestream (10593)
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 6 24, bytestream (10431)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 18 36, bytestream (11537)
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 33 60, bytestream (8907)
[h264 @ 0x13a06a0] concealing 5888 DC, 5888 AC, 5888 MV errors
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 19 0
[h264 @ 0x13a06a0] error while decoding MB 19 0, bytestream (25556)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 4 12, bytestream (25832)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 14 25
[h264 @ 0x13a06a0] error while decoding MB 14 24, bytestream (25826)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 27 36, bytestream (27143)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 6 48, bytestream (26435)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 5 60, bytestream (18798)
[h264 @ 0x13a06a0] concealing 6120 DC, 6120 AC, 6120 MV errors
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 22 0, bytestream (9835)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 28 12, bytestream (9595)
[h264 @ 0x13a06a0] top block unavailable for requested intra4x4 mode -1 at 2 36
[h264 @ 0x13a06a0] error while decoding MB 2 36, bytestream (11028)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 39 60, bytestream (8972)
[h264 @ 0x13a06a0] concealing 6080 DC, 6080 AC, 6080 MV errors
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
    Last message repeated 1 times
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 14 12, bytestream (10691)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 49 24, bytestream (9976)
[h264 @ 0x13a06a0] Reference 4 >= 2
[h264 @ 0x13a06a0] error while decoding MB 78 38, bytestream (11015)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 17 48, bytestream (11697)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 4 60, bytestream (8599)
[h264 @ 0x13a06a0] concealing 5868 DC, 5868 AC, 5868 MV errors
[h264 @ 0x13a06a0] top block unavailable for requested intra mode at 16 0
[h264 @ 0x13a06a0] error while decoding MB 16 0, bytestream (26184)
[h264 @ 0x13a06a0] top block unavailable for requested intra mode at 21 12
[h264 @ 0x13a06a0] error while decoding MB 21 12, bytestream (26065)
[h264 @ 0x13a06a0] Reference 6 >= 2
[h264 @ 0x13a06a0] error while decoding MB 2 24, bytestream (26932)
[h264 @ 0x13a06a0] Reference 3 >= 2
[h264 @ 0x13a06a0] error while decoding MB 1 36, bytestream (27895)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 4 48, bytestream (25303)
[h264 @ 0x13a06a0] Reference 2 >= 2
[h264 @ 0x13a06a0] error while decoding MB 5 60, bytestream (18006)
[h264 @ 0x13a06a0] concealing 6120 DC, 6120 AC, 6120 MV errors
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
[h264 @ 0x13a06a0] Current profile doesn't provide more RBSP data in PPS, skipping
[mpegts @ 0x139c7a0] PES packet size mismatch
    Last message repeated 3 times
Input #0, mpegts, from 'Deep%20Blue.ts':
  Duration: 00:01:53.87, start: 8894.988000, bitrate: 22099 kb/s
  Program 2
    Stream #0:0[0x21]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1440x1080 [SAR 15:11 DAR 20:11], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x24]: Audio: dts (DTS) (DTS2 / 0x32535444), 48000 Hz, 5.1(side), s16, 1536 kb/s
    Stream #0:2[0x26]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s16, 384 kb/s
At least one output file must be specified

Possibly a regression since a7cfef29.

comment:2 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed

Fixed localy, will push soon
Thanks

Note: See TracTickets for help on using tickets.