changeset 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 3d516cb458e6
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;i<ic->nb_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 */