convert every muxer/demuxer to write/read sample_aspect_ratio from/to

the corresponding AVStream instead of AVCodecContext

Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs
2008-08-23 23:43:20 +00:00
parent c30a4489b4
commit 5972945197
16 changed files with 44 additions and 46 deletions

View File

@@ -84,7 +84,7 @@ static int read_header(AVFormatContext *s,
video->codec->width = 320;
video->codec->height = 192;
/* 4:3 320x200 with 8 empty lines */
video->codec->sample_aspect_ratio = (AVRational) { 5, 6 };
video->sample_aspect_ratio = (AVRational) { 5, 6 };
video->time_base = (AVRational) { 2, 25 };
video->nb_frames = framecount;
video->duration = framecount;