mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-22 23:10:00 +01:00
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:
@@ -552,7 +552,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
get_le32(pb); //nbFieldsPerFrame
|
||||
|
||||
if(active_aspect.num && active_aspect.den && active.num && active.den){
|
||||
st->codec->sample_aspect_ratio= av_div_q(active_aspect, active);
|
||||
st->sample_aspect_ratio= av_div_q(active_aspect, active);
|
||||
//av_log(s, AV_LOG_ERROR, "vprp %d/%d %d/%d\n", active_aspect.num, active_aspect.den, active.num, active.den);
|
||||
}
|
||||
size -= 9*4;
|
||||
|
||||
Reference in New Issue
Block a user