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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user