wok-stable diff gst-plugins-base/stuff/theoradec-segfault-on-0-byte-ogg_packet-in-_chain_reverse.patch @ rev 11386
Compat: ensure that pam WGET_URL is non-https. Otherwise tazwok can't download it at cook-toolchain time
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Dec 10 04:42:49 2011 +0100 (2011-12-10) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gst-plugins-base/stuff/theoradec-segfault-on-0-byte-ogg_packet-in-_chain_reverse.patch Sat Dec 10 04:42:49 2011 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +From 7d22d91fca6b9f24ca205eef98031f1ed6a44d33 Mon Sep 17 00:00:00 2001 1.5 +From: Philip Jägenstedt <philipj@opera.com> 1.6 +Date: Tue, 26 Jul 2011 14:10:17 +0000 1.7 +Subject: theoradec: segfault on 0-byte ogg_packet in _chain_reverse 1.8 + 1.9 +--- 1.10 +diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c 1.11 +index 96e12ee..25d68db 100644 1.12 +--- a/ext/theora/gsttheoradec.c 1.13 ++++ b/ext/theora/gsttheoradec.c 1.14 +@@ -1440,7 +1440,7 @@ theora_dec_chain_reverse (GstTheoraDec * dec, gboolean discont, GstBuffer * buf) 1.15 + 1.16 + /* if we copied a keyframe, flush and decode the decode queue */ 1.17 + data = GST_BUFFER_DATA (gbuf); 1.18 +- if ((data[0] & 0x40) == 0) { 1.19 ++ if (data && (data[0] & 0x40) == 0) { 1.20 + GST_DEBUG_OBJECT (dec, "copied keyframe"); 1.21 + res = theora_dec_flush_decode (dec); 1.22 + } 1.23 +-- 1.24 +cgit v0.8.3-6-g21f6