Mercurial > libavformat.hg
comparison utils.c @ 578:8305c0755df7 libavformat
fix image stream copy
author | michael |
---|---|
date | Mon, 08 Nov 2004 23:36:32 +0000 |
parents | 640706a29efb |
children | 03377d4de76a |
comparison
equal
deleted
inserted
replaced
577:f8edb92d97b6 | 578:8305c0755df7 |
---|---|
1746 break; | 1746 break; |
1747 } | 1747 } |
1748 count++; | 1748 count++; |
1749 } | 1749 } |
1750 | 1750 |
1751 /* set real frame rate info */ | |
1752 for(i=0;i<ic->nb_streams;i++) { | 1751 for(i=0;i<ic->nb_streams;i++) { |
1753 st = ic->streams[i]; | 1752 st = ic->streams[i]; |
1754 if (st->codec.codec_type == CODEC_TYPE_VIDEO) { | 1753 if (st->codec.codec_type == CODEC_TYPE_VIDEO) { |
1754 if(st->codec.codec_id == CODEC_ID_RAWVIDEO && !st->codec.codec_tag) | |
1755 st->codec.codec_tag= avcodec_pix_fmt_to_codec_tag(st->codec.pix_fmt); | |
1756 /* set real frame rate info */ | |
1755 /* compute the real frame rate for telecine */ | 1757 /* compute the real frame rate for telecine */ |
1756 if ((st->codec.codec_id == CODEC_ID_MPEG1VIDEO || | 1758 if ((st->codec.codec_id == CODEC_ID_MPEG1VIDEO || |
1757 st->codec.codec_id == CODEC_ID_MPEG2VIDEO) && | 1759 st->codec.codec_id == CODEC_ID_MPEG2VIDEO) && |
1758 st->codec.sub_id == 2) { | 1760 st->codec.sub_id == 2) { |
1759 if (st->codec_info_nb_frames >= 20) { | 1761 if (st->codec_info_nb_frames >= 20) { |