From 930ee466f52380dee99ea77a0d0760b1c9afdefd Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 17 May 2011 22:42:45 +0200 Subject: [PATCH] h263parse: simplify minimum frame size handling --- gst/videoparsers/gsth263parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c index d77a9c7d89..77bbba90a4 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;