From d283a4430264dd656305e75213ef8f7a5fff044d Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 21 Dec 2009 18:19:23 +0100 Subject: [PATCH] ac3parse: fix scanning for next syncword --- gst/audioparsers/gstac3parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c index ca1018abcf..4d1efa62e1 100644 --- a/gst/audioparsers/gstac3parse.c +++ b/gst/audioparsers/gstac3parse.c @@ -397,7 +397,7 @@ gst_ac3_parse_check_valid_frame (GstBaseParse * parse, GstBuffer * buf, /* didn't find anything that looks like a sync word, skip */ if (off < 0) { - *skipsize = GST_BUFFER_SIZE (buf) - 2; + *skipsize = GST_BUFFER_SIZE (buf) - 3; return FALSE; }