diff libmpdemux/muxer_mpeg.c @ 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 e2f06b46dac0
children 516d7874450b
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...