Commit bb4ed1e0 authored by gpoirier's avatar gpoirier

Allow to get the the track number in the IPRT (part) tag in AVI.

Patch by Panagiotis Issaris % takis P issaris A uhasselt P be %
Original thread:
Date: Sep 6, 2006 6:00 PM
Subject: [Ffmpeg-devel] [PATCH] Enable track tag in AVI


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6190 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1af7c8b2
...@@ -215,6 +215,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -215,6 +215,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
AVStream *st; AVStream *st;
AVIStream *ast = NULL; AVIStream *ast = NULL;
int xan_video = 0; /* hack to support Xan A/V */ int xan_video = 0; /* hack to support Xan A/V */
char str_track[4];
avi->stream_index= -1; avi->stream_index= -1;
...@@ -479,6 +480,10 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -479,6 +480,10 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
case MKTAG('I', 'P', 'R', 'D'): case MKTAG('I', 'P', 'R', 'D'):
avi_read_tag(pb, s->album, sizeof(s->album), size); avi_read_tag(pb, s->album, sizeof(s->album), size);
break; break;
case MKTAG('I', 'P', 'R', 'T'):
avi_read_tag(pb, str_track, sizeof(str_track), size);
sscanf(str_track, "%d", &s->track);
break;
default: default:
/* skip tag */ /* skip tag */
size += (size & 1); size += (size & 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment