mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
flvdemux: Audio tags without any content are valid.
We silently ignore them instead of erroring out.
This commit is contained in:
parent
817911664e
commit
fa0e3184dd
1 changed files with 8 additions and 2 deletions
|
@ -579,11 +579,17 @@ gst_flv_parse_tag_audio (GstFLVDemux * demux, GstBuffer * buffer)
|
||||||
/* Combine them */
|
/* Combine them */
|
||||||
pts |= pts_ext << 24;
|
pts |= pts_ext << 24;
|
||||||
|
|
||||||
if (GST_BUFFER_SIZE (buffer) < 12) {
|
/* Error out on tags with too small headers */
|
||||||
GST_ERROR_OBJECT (demux, "Too small tag size");
|
if (GST_BUFFER_SIZE (buffer) < 11) {
|
||||||
|
GST_ERROR_OBJECT (demux, "Too small tag size (%d)",
|
||||||
|
GST_BUFFER_SIZE (buffer));
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Silently skip buffers with no data */
|
||||||
|
if (GST_BUFFER_SIZE (buffer) == 11)
|
||||||
|
return GST_FLOW_OK;
|
||||||
|
|
||||||
/* Skip the stream id and go directly to the flags */
|
/* Skip the stream id and go directly to the flags */
|
||||||
flags = GST_READ_UINT8 (data + 7);
|
flags = GST_READ_UINT8 (data + 7);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue