# HG changeset patch # User michael # Date 1101840334 0 # Node ID 6446e6aee91ed4a142e1d39d27393867080511ad # Parent 0209f7365ccceca59a84eef34f273205f1664353 fixing playback of ftp://ftp.mplayerhq.hu/MPlayer/incoming/blender_raw.avi diff -r 0209f7365ccc -r 6446e6aee91e utils.c --- a/utils.c Sun Nov 28 18:29:38 2004 +0000 +++ b/utils.c Tue Nov 30 18:45:34 2004 +0000 @@ -1785,7 +1785,7 @@ for(i=0;inb_streams;i++) { st = ic->streams[i]; if (st->codec.codec_type == CODEC_TYPE_VIDEO) { - if(st->codec.codec_id == CODEC_ID_RAWVIDEO && !st->codec.codec_tag) + if(st->codec.codec_id == CODEC_ID_RAWVIDEO && !st->codec.codec_tag && !st->codec.bits_per_sample) st->codec.codec_tag= avcodec_pix_fmt_to_codec_tag(st->codec.pix_fmt); /* set real frame rate info */ /* compute the real frame rate for telecine */