[FFmpeg-trac] #4005(avformat:open): Support transport streams with changing pid
FFmpeg
trac at avcodec.org
Thu Oct 16 14:53:06 CEST 2014
#4005: Support transport streams with changing pid
-------------------------------------+-------------------------------------
Reporter: | Owner:
Underground78 | Status: open
Type: enhancement | Component: avformat
Priority: wish | Resolution:
Version: git-master | Blocked By:
Keywords: mpegts | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by benoit):
I think the issue is only in ffmpeg/ffplay.
They both discards packets that belong to dynamically discovered streams.
For the file of this bug, e.g., ffmpeg can be "fixed" by doing the
following:
{{{
diff --git a/ffmpeg.c b/ffmpeg.c
index 077207f..616b7e3 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3383,7 +3383,7 @@ static int process_input(int file_index)
dynamically in stream : we ignore them */
if (pkt.stream_index >= ifile->nb_streams) {
report_new_stream(file_index, &pkt);
- goto discard_packet;
+ pkt.stream_index %= ifile->nb_streams;
}
ist = input_streams[ifile->ist_index + pkt.stream_index];
}}}
I'd be tempted to change the component(s) to ffmpeg/ffplay.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4005#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list