wok annotate 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 |
rev | line source |
---|---|
slaxemulator@11185 | 1 From 7d22d91fca6b9f24ca205eef98031f1ed6a44d33 Mon Sep 17 00:00:00 2001 |
slaxemulator@11185 | 2 From: Philip Jägenstedt <philipj@opera.com> |
slaxemulator@11185 | 3 Date: Tue, 26 Jul 2011 14:10:17 +0000 |
slaxemulator@11185 | 4 Subject: theoradec: segfault on 0-byte ogg_packet in _chain_reverse |
slaxemulator@11185 | 5 |
slaxemulator@11185 | 6 --- |
slaxemulator@11185 | 7 diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c |
slaxemulator@11185 | 8 index 96e12ee..25d68db 100644 |
slaxemulator@11185 | 9 --- a/ext/theora/gsttheoradec.c |
slaxemulator@11185 | 10 +++ b/ext/theora/gsttheoradec.c |
slaxemulator@11185 | 11 @@ -1440,7 +1440,7 @@ theora_dec_chain_reverse (GstTheoraDec * dec, gboolean discont, GstBuffer * buf) |
slaxemulator@11185 | 12 |
slaxemulator@11185 | 13 /* if we copied a keyframe, flush and decode the decode queue */ |
slaxemulator@11185 | 14 data = GST_BUFFER_DATA (gbuf); |
slaxemulator@11185 | 15 - if ((data[0] & 0x40) == 0) { |
slaxemulator@11185 | 16 + if (data && (data[0] & 0x40) == 0) { |
slaxemulator@11185 | 17 GST_DEBUG_OBJECT (dec, "copied keyframe"); |
slaxemulator@11185 | 18 res = theora_dec_flush_decode (dec); |
slaxemulator@11185 | 19 } |
slaxemulator@11185 | 20 -- |
slaxemulator@11185 | 21 cgit v0.8.3-6-g21f6 |