summaryrefslogtreecommitdiffstats
path: root/gst/flv
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2007-09-26 16:30:50 +0000
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-12 21:20:52 +0200
commitdf2c2e1d96ff6df25ab3e329abeabd574aaa95c4 (patch)
tree1d9aeb9d952ccb364906dbecd6f9aa8e2b3c7ba9 /gst/flv
parent995a9dcae4bd8c557b962faaf38800dcb86bf44d (diff)
[MOVED FROM BAD 12/57] gst/flv/gstflvparse.c: codec_data is needed for every tag not just the first one. (Fix a stupid bug i introduced with...
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)
Diffstat (limited to 'gst/flv')
-rw-r--r--gst/flv/gstflvparse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/flv/gstflvparse.c b/gst/flv/gstflvparse.c
index a7ca1a89..bf475cb3 100644
--- a/gst/flv/gstflvparse.c
+++ b/gst/flv/gstflvparse.c
@@ -658,6 +658,9 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
}
/* 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);
@@ -685,11 +688,9 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
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);