wok view gst-plugins-base/stuff/theoradec-segfault-on-0-byte-ogg_packet-in-_chain_reverse.patch @ rev 13534

gnome-commander: added; gnome-commander-i18n: added (optional lang files)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 23 11:16:24 2012 +0200 (2012-10-23)
parents
children
line source
1 From 7d22d91fca6b9f24ca205eef98031f1ed6a44d33 Mon Sep 17 00:00:00 2001
2 From: Philip Jägenstedt <philipj@opera.com>
3 Date: Tue, 26 Jul 2011 14:10:17 +0000
4 Subject: theoradec: segfault on 0-byte ogg_packet in _chain_reverse
6 ---
7 diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c
8 index 96e12ee..25d68db 100644
9 --- a/ext/theora/gsttheoradec.c
10 +++ b/ext/theora/gsttheoradec.c
11 @@ -1440,7 +1440,7 @@ theora_dec_chain_reverse (GstTheoraDec * dec, gboolean discont, GstBuffer * buf)
13 /* if we copied a keyframe, flush and decode the decode queue */
14 data = GST_BUFFER_DATA (gbuf);
15 - if ((data[0] & 0x40) == 0) {
16 + if (data && (data[0] & 0x40) == 0) {
17 GST_DEBUG_OBJECT (dec, "copied keyframe");
18 res = theora_dec_flush_decode (dec);
19 }
20 --
21 cgit v0.8.3-6-g21f6