comparison avidec.c @ 3759:27537074f2a9 libavformat

convert every muxer/demuxer to write/read sample_aspect_ratio from/to the corresponding AVStream instead of AVCodecContext
author aurel
date Sat, 23 Aug 2008 23:43:20 +0000
parents 71ce7d228291
children 1d3d17de20ba
comparison
equal deleted inserted replaced
3758:e966560661e5 3759:27537074f2a9
550 active.num = get_le32(pb); 550 active.num = get_le32(pb);
551 active.den = get_le32(pb); 551 active.den = get_le32(pb);
552 get_le32(pb); //nbFieldsPerFrame 552 get_le32(pb); //nbFieldsPerFrame
553 553
554 if(active_aspect.num && active_aspect.den && active.num && active.den){ 554 if(active_aspect.num && active_aspect.den && active.num && active.den){
555 st->codec->sample_aspect_ratio= av_div_q(active_aspect, active); 555 st->sample_aspect_ratio= av_div_q(active_aspect, active);
556 //av_log(s, AV_LOG_ERROR, "vprp %d/%d %d/%d\n", active_aspect.num, active_aspect.den, active.num, active.den); 556 //av_log(s, AV_LOG_ERROR, "vprp %d/%d %d/%d\n", active_aspect.num, active_aspect.den, active.num, active.den);
557 } 557 }
558 size -= 9*4; 558 size -= 9*4;
559 } 559 }
560 url_fseek(pb, size, SEEK_CUR); 560 url_fseek(pb, size, SEEK_CUR);