changeset 18044:b693d92e6210

workaround to prevent segfault: when using -ve lavc with b-frames write_chunk(1st video frame) gets called with len=-1UL; -1ULl to whomever calls me that way
author nicodvb
date Wed, 05 Apr 2006 20:51:35 +0000
parents 97aa495df9dd
children 452996e2628c
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Wed Apr 05 18:50:24 2006 +0000
+++ b/libmpdemux/muxer_mpeg.c	Wed Apr 05 20:51:35 2006 +0000
@@ -2436,6 +2436,8 @@
  
   if(s->buffer == NULL)
   	return;
+  if(len == -1)
+	return;
   
   pts = 0;
   if (s->type == MUXER_TYPE_VIDEO) { // try to recognize frame type...