mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
mpeg4videoparse: simplify minimum frame size handling
This commit is contained in:
parent
dbb1fecf08
commit
8a3efc4431
1 changed files with 4 additions and 2 deletions
|
@ -203,7 +203,8 @@ gst_mpeg4vparse_start (GstBaseParse * parse)
|
||||||
GST_DEBUG_OBJECT (parse, "start");
|
GST_DEBUG_OBJECT (parse, "start");
|
||||||
|
|
||||||
gst_mpeg4vparse_reset (mp4vparse);
|
gst_mpeg4vparse_reset (mp4vparse);
|
||||||
gst_base_parse_set_min_frame_size (parse, 512);
|
/* at least this much for a valid frame */
|
||||||
|
gst_base_parse_set_min_frame_size (parse, 6);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -413,7 +414,8 @@ next:
|
||||||
} else {
|
} else {
|
||||||
/* resume scan where we left it */
|
/* resume scan where we left it */
|
||||||
mp4vparse->last_sc = GST_BUFFER_SIZE (buf) - 4;
|
mp4vparse->last_sc = GST_BUFFER_SIZE (buf) - 4;
|
||||||
gst_base_parse_set_min_frame_size (parse, GST_BUFFER_SIZE (buf) + 64);
|
/* request best next available */
|
||||||
|
*framesize = G_MAXUINT;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue