mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
codecparsers: return NO_PACKET if needed
This commit is contained in:
parent
3aa9081ef5
commit
5aaf56af29
1 changed files with 2 additions and 2 deletions
|
@ -443,12 +443,12 @@ gst_mpeg4_parse (GstMpeg4Packet * packet, gboolean skip_user_data,
|
||||||
/* We found a complet slice */
|
/* We found a complet slice */
|
||||||
if (resync_res == GST_MPEG4_PARSER_OK)
|
if (resync_res == GST_MPEG4_PARSER_OK)
|
||||||
return resync_res;
|
return resync_res;
|
||||||
|
|
||||||
else if (resync_res == GST_MPEG4_PARSER_NO_PACKET_END) {
|
else if (resync_res == GST_MPEG4_PARSER_NO_PACKET_END) {
|
||||||
/* It doesn't mean there is no standard packet end, look for it */
|
/* It doesn't mean there is no standard packet end, look for it */
|
||||||
off1 = packet->offset;
|
off1 = packet->offset;
|
||||||
goto find_end;
|
goto find_end;
|
||||||
}
|
} else if (resync_res == GST_MPEG4_PARSER_NO_PACKET)
|
||||||
|
return resync_res;
|
||||||
}
|
}
|
||||||
|
|
||||||
off1 = gst_byte_reader_masked_scan_uint32 (&br, 0xffffff00, 0x00000100,
|
off1 = gst_byte_reader_masked_scan_uint32 (&br, 0xffffff00, 0x00000100,
|
||||||
|
|
Loading…
Reference in a new issue