diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-23 23:13:58 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-23 23:13:58 +0000 |
commit | c30a4489b444020ef951c1f0583afd8679c07c78 (patch) | |
tree | 0ca4b5260d083c6c053b8424ce213448451a0736 /libavformat/utils.c | |
parent | 0cdc6ec94130572e1da1902821e2b3cbcf0fbea8 (diff) | |
download | ffmpeg-c30a4489b444020ef951c1f0583afd8679c07c78.tar.gz |
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
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 51cad25ab9..9a8aaeca7f 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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; } |