changeset 2762:64333ef1ca21 libavcodec

non-avc h264 stream problems patch by ("Ronald S. Bultje" rbultje, ronald bitfreak net)
author michael
date Thu, 09 Jun 2005 20:01:02 +0000
parents a1f71e17054c
children 01ed2c3b8f08
files h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Jun 08 00:40:41 2005 +0000
+++ b/h264.c	Thu Jun 09 20:01:02 2005 +0000
@@ -7343,7 +7343,7 @@
     }
 
     if(!h->is_avc && s->avctx->extradata_size && s->picture_number==0){
-        if(0 < decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) ) 
+        if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0) 
             return -1;
     }