[MOVED FROM GST-P-FARSIGHT] Check the size of the input buffer, not the output buffer
This commit is contained in:
parent
a67aa17c6d
commit
72c979d84b
@ -179,7 +179,7 @@ gst_siren_dec_chain (GstPad *pad, GstBuffer *buf)
|
|||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size % 40 != 0)
|
if (GST_BUFFER_SIZE (buf) % 40 != 0)
|
||||||
GST_LOG_OBJECT (dec, "Got buffer with size not a multiple for frame size,"
|
GST_LOG_OBJECT (dec, "Got buffer with size not a multiple for frame size,"
|
||||||
" ignoring last %u bytes", GST_BUFFER_SIZE (buf) % 40);
|
" ignoring last %u bytes", GST_BUFFER_SIZE (buf) % 40);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user