Original commit message from CVS:
2007-09-26 Julien MOUTTE <julien@moutte.net>
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video): codec_data is needed for every tag
not just the first one. (Fix a stupid bug i introduced without
testing)
2007-09-26 Julien MOUTTE <julien@moutte.net>
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
+ (gst_flv_parse_tag_video): codec_data is needed for every tag
+ not just the first one. (Fix a stupid bug i introduced without
+ testing)
+
+2007-09-26 Julien MOUTTE <julien@moutte.net>
+
+ * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video): Fix bit masks operations to be
sure we detect the codec_tags and sample rates correctly.
Fix raw audio caps generation.
}
/* Codec tag */
codec_tag = flags & 0x0F;
+ if (codec_tag == 4 || codec_tag == 5) {
+ codec_data = 2;
+ }
GST_LOG_OBJECT (demux, "video tag with codec tag %u, keyframe (%d) "
"(flags %02X)", codec_tag, keyframe, flags);
break;
case 4:
caps = gst_caps_new_simple ("video/x-vp6-flash", NULL);
- codec_data = 2;
break;
case 5:
caps = gst_caps_new_simple ("video/x-vp6-flash", NULL);
- codec_data = 2;
break;
default:
GST_WARNING_OBJECT (demux, "unsupported video codec tag %d", codec_tag);