[FFmpeg-devel] [PATCH] MPEG PS consider other audio tracks when muxing
Michael Niedermayer
michaelni
Fri May 15 20:55:24 CEST 2009
On Fri, May 15, 2009 at 10:38:56AM -0700, Baptiste Coudurier wrote:
> Hi
>
> $subject, this patch fixes a bug when muxing more than one audio track.
> id of other audio tracks will be > 0xc000 in this case.
>
> --
> Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
> Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
> FFmpeg maintainer http://www.ffmpeg.org
> mpegenc.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
> 281a89d8f0423e904687d78298fbc2a2f6dd21be ps_audio.patch
> Index: libavformat/mpegenc.c
> ===================================================================
> --- libavformat/mpegenc.c (revision 18820)
> +++ libavformat/mpegenc.c (working copy)
> @@ -157,7 +157,7 @@
>
> put_bits(&pb, 1, 1); /* marker */
>
> - if (s->is_vcd && only_for_stream_id==AUDIO_ID) {
> + if (s->is_vcd && only_for_stream_id & 0xc000 == 0xc000) {
AUDIO_ID is 0xc0 not 0xc000
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090515/f1da3713/attachment.pgp>
More information about the ffmpeg-devel
mailing list