X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Flibzmpeg3%2Ftoc.C;h=ef5a60a37a661b18c5f284a60e685c5b8a1a86bf;hb=2f1bbd12877daf745e1d18b62b731f04cece827e;hp=b50c011d91d2bce262ebfbe4902d90171f68fc98;hpb=64ee854bdef9fb08e6fec938aa0519715f724b99;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/libzmpeg3/toc.C b/cinelerra-5.1/libzmpeg3/toc.C index b50c011d..ef5a60a3 100644 --- a/cinelerra-5.1/libzmpeg3/toc.C +++ b/cinelerra-5.1/libzmpeg3/toc.C @@ -1062,7 +1062,7 @@ do_toc(int64_t *bytes_processed) /* In a transport stream the audio or video is determined by the PID. */ /* In other streams the data type is determined by stream ID. */ if( demuxer->got_audio >= 0 || is_transport_stream() || is_audio_stream() ) { - int audio_pid = demuxer->got_audio; + int audio_pid = is_transport_stream() ? demuxer->custom_id : demuxer->got_audio; atrack_t *atrk = 0; for( idx=0; idx < total_atracks; ++idx ) { if( atrack[idx]->pid == audio_pid ) { /* Update an audio track */ @@ -1087,7 +1087,7 @@ do_toc(int64_t *bytes_processed) } } if( demuxer->got_video >= 0 || is_transport_stream() || is_video_stream() ) { - int video_pid = demuxer->got_video; + int video_pid = is_transport_stream() ? demuxer->custom_id : demuxer->got_video; vtrack_t *vtrk = 0; for( idx=0; idx < total_vtracks; ++idx ) { if( vtrack[idx]->pid == video_pid ) { /* Update a video track */