comparison src/ffmpeg/libavformat/utils.c @ 831:dec0488e1344 trunk

[svn] - remove more video codecs.
author nenolod
date Mon, 12 Mar 2007 15:28:22 -0700
parents 68562d99230f
children d8b8b36d2709
comparison
equal deleted inserted replaced
830:68562d99230f 831:dec0488e1344
2023 avcodec_close(st->codec); 2023 avcodec_close(st->codec);
2024 } 2024 }
2025 for(i=0;i<ic->nb_streams;i++) { 2025 for(i=0;i<ic->nb_streams;i++) {
2026 st = ic->streams[i]; 2026 st = ic->streams[i];
2027 if (st->codec->codec_type == CODEC_TYPE_VIDEO) { 2027 if (st->codec->codec_type == CODEC_TYPE_VIDEO) {
2028 if(st->codec->codec_id == CODEC_ID_RAWVIDEO && !st->codec->codec_tag && !st->codec->bits_per_sample)
2029 st->codec->codec_tag= avcodec_pix_fmt_to_codec_tag(st->codec->pix_fmt);
2030
2031 if(duration_count[i] 2028 if(duration_count[i]
2032 && (st->codec->time_base.num*101LL <= st->codec->time_base.den || st->codec->codec_id == CODEC_ID_MPEG2VIDEO) && 2029 && (st->codec->time_base.num*101LL <= st->codec->time_base.den || st->codec->codec_id == CODEC_ID_MPEG2VIDEO) &&
2033 //FIXME we should not special case mpeg2, but this needs testing with non mpeg2 ... 2030 //FIXME we should not special case mpeg2, but this needs testing with non mpeg2 ...
2034 st->time_base.num*duration_sum[i]/duration_count[i]*101LL > st->time_base.den){ 2031 st->time_base.num*duration_sum[i]/duration_count[i]*101LL > st->time_base.den){
2035 int64_t num, den, error, best_error; 2032 int64_t num, den, error, best_error;