[vlc-devel] commit: codec/schroedinger: handle cases where schro invents a placeholder pic (David Flynn )

git version control git at videolan.org
Fri Apr 3 11:21:09 CEST 2009


vlc | branch: master | David Flynn <davidf at rd.bbc.co.uk> | Fri Mar 27 20:37:51 2009 +0000| [eead487527d6a65897e23031bd2fefbd5122e250] | committer: Jean-Baptiste Kempf 

codec/schroedinger: handle cases where schro invents a placeholder pic

Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eead487527d6a65897e23031bd2fefbd5122e250
---

 modules/codec/schroedinger.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c
index 4bb392a..1f39df1 100644
--- a/modules/codec/schroedinger.c
+++ b/modules/codec/schroedinger.c
@@ -528,6 +528,11 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         case SCHRO_DECODER_OK:
             u_pnum = schro_decoder_get_picture_number( p_sys->p_schro );
             p_schroframe = schro_decoder_pull( p_sys->p_schro );
+            if( !p_schroframe->priv )
+            {
+                schro_frame_unref( p_schroframe );
+                break;
+            }
             p_pic = ((struct picture_free_t*) p_schroframe->priv)->p_pic;
             p_schroframe->priv = NULL;
             schro_frame_unref( p_schroframe );




More information about the vlc-devel mailing list