[FFmpeg-devel] [PATCH] avformat/vobsub: compare correct packet stream IDs

Michael Niedermayer michaelni at gmx.at
Mon Sep 21 13:13:16 CEST 2015


On Mon, Sep 21, 2015 at 12:09:08PM +0200, wm4 wrote:
> The stream ID is essentially an arbitrary number defined by the .idx
> file headers. They have to match the IDs in the .sub stream. The vobsub
> demuxer assumed the IDs would just start from 0, increassing by 1 for
> each stream. This is not correct. In the sample I had, the IDs were
> starting from 1, leading to no subtitles being displayed at all.
> 
> Fix this by using the correct stream ID.
> ---
>  libavformat/mpeg.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied

thanks

PS: is there a public sample/testcase for this ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150921/d12c44f2/attachment.sig>


More information about the ffmpeg-devel mailing list