Mercurial > libavformat.hg
comparison utils.c @ 600:6446e6aee91e libavformat
fixing playback of ftp://ftp.mplayerhq.hu/MPlayer/incoming/blender_raw.avi
author | michael |
---|---|
date | Tue, 30 Nov 2004 18:45:34 +0000 |
parents | 0209f7365ccc |
children | 15cf78d9aceb |
comparison
equal
deleted
inserted
replaced
599:0209f7365ccc | 600:6446e6aee91e |
---|---|
1783 } | 1783 } |
1784 | 1784 |
1785 for(i=0;i<ic->nb_streams;i++) { | 1785 for(i=0;i<ic->nb_streams;i++) { |
1786 st = ic->streams[i]; | 1786 st = ic->streams[i]; |
1787 if (st->codec.codec_type == CODEC_TYPE_VIDEO) { | 1787 if (st->codec.codec_type == CODEC_TYPE_VIDEO) { |
1788 if(st->codec.codec_id == CODEC_ID_RAWVIDEO && !st->codec.codec_tag) | 1788 if(st->codec.codec_id == CODEC_ID_RAWVIDEO && !st->codec.codec_tag && !st->codec.bits_per_sample) |
1789 st->codec.codec_tag= avcodec_pix_fmt_to_codec_tag(st->codec.pix_fmt); | 1789 st->codec.codec_tag= avcodec_pix_fmt_to_codec_tag(st->codec.pix_fmt); |
1790 /* set real frame rate info */ | 1790 /* set real frame rate info */ |
1791 /* compute the real frame rate for telecine */ | 1791 /* compute the real frame rate for telecine */ |
1792 if ((st->codec.codec_id == CODEC_ID_MPEG1VIDEO || | 1792 if ((st->codec.codec_id == CODEC_ID_MPEG1VIDEO || |
1793 st->codec.codec_id == CODEC_ID_MPEG2VIDEO) && | 1793 st->codec.codec_id == CODEC_ID_MPEG2VIDEO) && |