[FFmpeg-trac] #365(avformat:open): trp/ts file w/o PAT/PMT is not supported
FFmpeg
trac at avcodec.org
Sat Jul 30 11:55:33 CEST 2011
#365: trp/ts file w/o PAT/PMT is not supported
--------------------------------+-----------------------
Reporter: Superb | Owner:
Type: enhancement | Status: open
Priority: minor | Component: avformat
Version: git-master | Resolution:
Keywords: ts aac pat pmt latm | Blocked By:
Blocking: | Reproduced: 1
Analyzed: 1 |
--------------------------------+-----------------------
Comment (by reimar):
I sent a patch for a bug in the code this is derived from.
Also this:
uint32_t header = AV_RB16(buf2);
if((header&0xFFE0) != 0x56E0) // "0x2B7"
break;
fsize = ((AV_RB32(buf2) >> 8) & 0x1FFF) + 3;
could/should be simplified to something like e.g.
uint32_t header = AV_RB24(buf2);
if(header >> 13 != 0x2B7)
break;
fsize = (header & 0x1FFF) + 3;
Which would also allow the - 4 in calculating "end" to be reduced to - 3.
--
Ticket URL: <http://avcodec.org/trac/ffmpeg/ticket/365#comment:11>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list