Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gst-plugins-base
> 0041-typefind-give-less-weight-to-H.263-streams-when-few-.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0041-typefind-give-less-weight-to-H.263-streams-when-few-.patch of Package gst-plugins-base
From fad32193a79b394c8e7e630b0aa739462a424fa4 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Thu, 20 Sep 2012 17:09:43 +0100 Subject: [PATCH] typefind: give less weight to H.263 streams when few blocks are found This avoids mistaking at least one H.264 stream for H.263. --- gst/typefind/gsttypefindfunctions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 27823b6..c8bd86e 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -2377,7 +2377,7 @@ h263_video_type_find (GstTypeFind * tf, gpointer unused) data_scan_ctx_advance (tf, &c, 1); } - if (good > 0 && bad == 0) + if (good > 1 && bad == 0) gst_type_find_suggest (tf, GST_TYPE_FIND_LIKELY, H263_VIDEO_CAPS); else if (good > 2 * bad) gst_type_find_suggest (tf, GST_TYPE_FIND_POSSIBLE, H263_VIDEO_CAPS); -- 1.7.9.5