diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-14 00:46:37 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-14 00:46:37 +0000 |
commit | b4bcf81001976ad52f6743e3bf25aabd450703f5 (patch) | |
tree | 5fb96ff5ff65482924dd8fe684ce73a17f0b056a /libavformat/swf.c | |
parent | 6ac558eefcd32a6b3c7406aeb7b9a3d8528caa10 (diff) | |
download | ffmpeg-b4bcf81001976ad52f6743e3bf25aabd450703f5.tar.gz |
always export videostreams
Originally committed as revision 7452 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.c')
-rw-r--r-- | libavformat/swf.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c index ee0701e48c..52b7febbf4 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -792,24 +792,19 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) return AVERROR_IO; } if ( tag == TAG_VIDEOSTREAM && !vst) { - int codec_id; swf->ch_id = get_le16(pb); get_le16(pb); get_le16(pb); get_le16(pb); get_byte(pb); /* Check for FLV1 */ - codec_id = codec_get_id(swf_codec_tags, get_byte(pb)); - if ( codec_id ) { - vst = av_new_stream(s, 0); - av_set_pts_info(vst, 24, 1, 1000); /* 24 bit pts in ms */ - - vst->codec->codec_type = CODEC_TYPE_VIDEO; - vst->codec->codec_id = codec_id; - if ( swf->samples_per_frame ) { - vst->codec->time_base.den = 1000. / swf->ms_per_frame; - vst->codec->time_base.num = 1; - } + vst = av_new_stream(s, 0); + av_set_pts_info(vst, 24, 1, 1000); /* 24 bit pts in ms */ + vst->codec->codec_type = CODEC_TYPE_VIDEO; + vst->codec->codec_id = codec_get_id(swf_codec_tags, get_byte(pb)); + if (swf->samples_per_frame) { + vst->codec->time_base.den = 1000. / swf->ms_per_frame; + vst->codec->time_base.num = 1; } } else if ( ( tag == TAG_STREAMHEAD || tag == TAG_STREAMHEAD2 ) && !ast) { /* streaming found */ |