wok diff gst-plugins-base/stuff/theoradec-segfault-on-0-byte-ogg_packet-in-_chain_reverse.patch @ rev 13327
librsync: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 03 11:17:28 2012 +0200 (2012-09-03) |
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 Mon Sep 03 11:17:28 2012 +0200 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