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)
This commit is contained in:
Julien Moutte 2007-09-26 16:30:50 +00:00
parent a37eba036b
commit 188ce39697
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,10 @@
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> 2007-09-26 Julien MOUTTE <julien@moutte.net>
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio), * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),

View file

@ -658,6 +658,9 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
} }
/* Codec tag */ /* Codec tag */
codec_tag = flags & 0x0F; 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) " GST_LOG_OBJECT (demux, "video tag with codec tag %u, keyframe (%d) "
"(flags %02X)", codec_tag, keyframe, flags); "(flags %02X)", codec_tag, keyframe, flags);
@ -685,11 +688,9 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
break; break;
case 4: case 4:
caps = gst_caps_new_simple ("video/x-vp6-flash", NULL); caps = gst_caps_new_simple ("video/x-vp6-flash", NULL);
codec_data = 2;
break; break;
case 5: case 5:
caps = gst_caps_new_simple ("video/x-vp6-flash", NULL); caps = gst_caps_new_simple ("video/x-vp6-flash", NULL);
codec_data = 2;
break; break;
default: default:
GST_WARNING_OBJECT (demux, "unsupported video codec tag %d", codec_tag); GST_WARNING_OBJECT (demux, "unsupported video codec tag %d", codec_tag);