summaryrefslogtreecommitdiff
path: root/gst/videoparsers/gsth263parse.c
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-05-17 22:42:45 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-05-23 16:57:25 +0200
commit930ee466f52380dee99ea77a0d0760b1c9afdefd (patch)
treee2974eb9164600f3304e1779d0664333d73b62e2 /gst/videoparsers/gsth263parse.c
parent217e389689091dd89867fe753ec446e85c54c407 (diff)
downloadgstreamer-plugins-bad-930ee466f52380dee99ea77a0d0760b1c9afdefd.tar.gz
h263parse: simplify minimum frame size handling
Diffstat (limited to 'gst/videoparsers/gsth263parse.c')
-rw-r--r--gst/videoparsers/gsth263parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c
index d77a9c7d8..77bbba90a 100644
--- a/gst/videoparsers/gsth263parse.c
+++ b/gst/videoparsers/gsth263parse.c
@@ -110,7 +110,7 @@ gst_h263_parse_start (GstBaseParse * parse)
h263parse->state = PARSING;
- gst_base_parse_set_min_frame_size (parse, 512);
+ gst_base_parse_set_min_frame_size (parse, 4);
return TRUE;
}
@@ -309,8 +309,8 @@ gst_h263_parse_check_valid_frame (GstBaseParse * parse,
return TRUE;
more:
- /* Ask for 1024 bytes more - this is an arbitrary choice */
- gst_base_parse_set_min_frame_size (parse, GST_BUFFER_SIZE (buffer) + 1024);
+ /* ask for best next available */
+ *framesize = G_MAXUINT;
*skipsize = psc_pos;