diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-11-08 23:36:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-11-08 23:36:32 +0000 |
commit | d07730ddd139e97d671c8670bdd73e19d3e9fcc0 (patch) | |
tree | 0b34c4ed6b6f6031a77b8e126224e545e2be63e8 /libavformat | |
parent | 359fa0febc878066cbb31102e1ee709374054015 (diff) | |
download | ffmpeg-d07730ddd139e97d671c8670bdd73e19d3e9fcc0.tar.gz |
fix image stream copy
Originally committed as revision 3662 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 76a80eb6d8..1699734bcd 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1748,10 +1748,12 @@ int av_find_stream_info(AVFormatContext *ic) 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) && |