# HG changeset patch # User michael # Date 1099956992 0 # Node ID 8305c0755df7929637660ec15c173c7d1da23d5d # Parent f8edb92d97b6639714b8d03382464292fd8840af fix image stream copy diff -r f8edb92d97b6 -r 8305c0755df7 utils.c --- a/utils.c Sat Nov 06 19:11:34 2004 +0000 +++ b/utils.c Mon Nov 08 23:36:32 2004 +0000 @@ -1748,10 +1748,12 @@ count++; } - /* set real frame rate info */ 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) + 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 */ if ((st->codec.codec_id == CODEC_ID_MPEG1VIDEO || st->codec.codec_id == CODEC_ID_MPEG2VIDEO) &&