]> granicus.if.org Git - handbrake/commitdiff
stream: fix building of subtitle list in PES files
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 31 Jul 2019 14:56:56 +0000 (07:56 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 31 Jul 2019 14:58:50 +0000 (07:58 -0700)
a very old cut & paste error.  people must not use subtitles in PES
much ;)

libhb/stream.c

index 0a66a72755fff748bd2114b9d568cbeb2e80c190..1e6bf1e0a823b5cb2a2b02151a0a5b16eac04f5b 100644 (file)
@@ -2153,7 +2153,7 @@ static void hb_init_subtitle_list(hb_stream_t *stream, hb_title_t *title)
             break;
     }
 
-    int count = hb_list_count( title->list_audio );
+    int count = hb_list_count( title->list_subtitle );
     // Now add the reset.  Sort them by stream id.
     for ( ii = 0; ii < stream->pes.count; ii++ )
     {