[Ffmpeg-cvslog] r7452 - trunk/libavformat/swf.c
bcoudurier
subversion
Sun Jan 14 01:46:37 CET 2007
Author: bcoudurier
Date: Sun Jan 14 01:46:37 2007
New Revision: 7452
Modified:
trunk/libavformat/swf.c
Log:
always export videostreams
Modified: trunk/libavformat/swf.c
==============================================================================
--- trunk/libavformat/swf.c (original)
+++ trunk/libavformat/swf.c Sun Jan 14 01:46:37 2007
@@ -792,24 +792,19 @@
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 */
More information about the ffmpeg-cvslog
mailing list