[FFmpeg-devel] [PATCH] bink: decode audio track identifiers into AVStream.id
Kostya
kostya.shishkov
Sun Feb 20 07:45:08 CET 2011
On Sun, Feb 20, 2011 at 01:15:38PM +1100, Peter Ross wrote:
> ---
> libavformat/bink.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/bink.c b/libavformat/bink.c
> index c134dd8..dfad6c2 100644
> --- a/libavformat/bink.c
> +++ b/libavformat/bink.c
> @@ -143,7 +143,8 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
> ast->codec->channels = flags & BINK_AUD_STEREO ? 2 : 1;
> }
>
> - url_fskip(pb, 4 * bink->num_audio_tracks);
> + for (i = 0; i < bink->num_audio_tracks; i++)
> + s->streams[i + 1]->id = get_le32(pb);
> }
>
> /* frame index table */
> --
> 1.7.1
probably ok
More information about the ffmpeg-devel
mailing list