Mercurial > libavformat.hg
comparison libnut.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 | 7a0230981402 |
children | e6aeb2733e34 |
comparison
equal
deleted
inserted
replaced
3758:e966560661e5 | 3759:27537074f2a9 |
---|---|
244 st->codec->codec_type = CODEC_TYPE_VIDEO; | 244 st->codec->codec_type = CODEC_TYPE_VIDEO; |
245 if (st->codec->codec_id == CODEC_ID_NONE) st->codec->codec_id = codec_get_id(codec_bmp_tags, st->codec->codec_tag); | 245 if (st->codec->codec_id == CODEC_ID_NONE) st->codec->codec_id = codec_get_id(codec_bmp_tags, st->codec->codec_tag); |
246 | 246 |
247 st->codec->width = s[i].width; | 247 st->codec->width = s[i].width; |
248 st->codec->height = s[i].height; | 248 st->codec->height = s[i].height; |
249 st->codec->sample_aspect_ratio.num = s[i].sample_width; | 249 st->sample_aspect_ratio.num = s[i].sample_width; |
250 st->codec->sample_aspect_ratio.den = s[i].sample_height; | 250 st->sample_aspect_ratio.den = s[i].sample_height; |
251 break; | 251 break; |
252 } | 252 } |
253 if (st->codec->codec_id == CODEC_ID_NONE) av_log(avf, AV_LOG_ERROR, "Unknown codec?!\n"); | 253 if (st->codec->codec_id == CODEC_ID_NONE) av_log(avf, AV_LOG_ERROR, "Unknown codec?!\n"); |
254 } | 254 } |
255 | 255 |