[FFmpeg-devel] [patch] Only decode forced dvd-subtitles

Michael Niedermayer michaelni at gmx.at
Fri Sep 19 18:53:48 CEST 2014


On Fri, Sep 19, 2014 at 07:33:26AM -0700, Nicholas Robbins wrote:
> Ok, not to beat a dead horse, but I think I've gotten this working. I think it might work better in lavc/dvdsubdec.c. AFAICT this works and doesn't produce mangled tracks. Patch at end of email. (Sorry for the inline patch) If this is a good patch, I'll add the appropriate documentation and do a proper commit-patch 
> 
> 
> 
> diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
> index 7355c03..874c28b 100644
> --- a/libavcodec/dvdsubdec.c
> +++ b/libavcodec/dvdsubdec.c
> @@ -39,6 +39,7 @@ typedef struct DVDSubContext
>    uint8_t  alpha[256];
>    uint8_t *buf;
>    int      buf_size;
> +  int      only_dec_forced;
> #ifdef DEBUG
>    int sub_id;
> #endif

the patch is corrupted, place make sure the stuff you use to send
email doesnt mangle patches or attach the patch (which generally
fixes these kind of issues)

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

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140919/04b414f7/attachment.asc>


More information about the ffmpeg-devel mailing list