mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
h263parse: simplify minimum frame size handling
This commit is contained in:
parent
217e389689
commit
930ee466f5
1 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ gst_h263_parse_start (GstBaseParse * parse)
|
||||||
|
|
||||||
h263parse->state = PARSING;
|
h263parse->state = PARSING;
|
||||||
|
|
||||||
gst_base_parse_set_min_frame_size (parse, 512);
|
gst_base_parse_set_min_frame_size (parse, 4);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -309,8 +309,8 @@ gst_h263_parse_check_valid_frame (GstBaseParse * parse,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
more:
|
more:
|
||||||
/* Ask for 1024 bytes more - this is an arbitrary choice */
|
/* ask for best next available */
|
||||||
gst_base_parse_set_min_frame_size (parse, GST_BUFFER_SIZE (buffer) + 1024);
|
*framesize = G_MAXUINT;
|
||||||
|
|
||||||
*skipsize = psc_pos;
|
*skipsize = psc_pos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue