[mythtv] [MINOR PATCH] Small fix to libavcodec

Tako Schotanus quintesse at palacio-cristal.com
Thu Oct 16 00:33:16 EDT 2003


The libavcodec.patch fixes a crash that occurs very seldom when it tries 
to clean up while it was never completely initialized.

Cheers,
-Tako
-------------- next part --------------
Index: libs/libavcodec/utils.c
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libavcodec/utils.c,v
retrieving revision 1.26
diff -u -2 -r1.26 utils.c
--- libs/libavcodec/utils.c	14 Sep 2003 19:12:13 -0000	1.26
+++ libs/libavcodec/utils.c	15 Oct 2003 21:11:03 -0000
@@ -393,5 +393,5 @@
 int avcodec_close(AVCodecContext *avctx)
 {
-    if (avctx->codec->close)
+    if (avctx->codec && avctx->codec->close)
         avctx->codec->close(avctx);
     av_freep(&avctx->priv_data);


More information about the mythtv-dev mailing list