export sample_aspect_ratio read by the demuxer in a separate field

that the one read by the decoder.

Originally committed as revision 14932 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs
2008-08-23 23:13:58 +00:00
parent 0cdc6ec941
commit c30a4489b4
4 changed files with 24 additions and 8 deletions

View File

@@ -2331,6 +2331,8 @@ AVStream *av_new_stream(AVFormatContext *s, int id)
for(i=0; i<MAX_REORDER_DELAY+1; i++)
st->pts_buffer[i]= AV_NOPTS_VALUE;
st->sample_aspect_ratio = (AVRational){0,1};
s->streams[s->nb_streams++] = st;
return st;
}