changeset 578:8305c0755df7 libavformat

fix image stream copy
author michael
date Mon, 08 Nov 2004 23:36:32 +0000
parents f8edb92d97b6
children 117ece7c24a6
files utils.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;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)
+                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) &&