[MPlayer-cvslog] r37731 - trunk/libmpdemux/muxer_avi.c

reimar subversion at mplayerhq.hu
Sun Feb 14 16:24:00 CET 2016


Author: reimar
Date: Sun Feb 14 16:24:00 2016
New Revision: 37731

Log:
muxer_avi: remove pointless check for video stream.

If there is not video stream, we will have failed
and crashed in a lot of other places before.
No point to have a check in only one single place.

Modified:
   trunk/libmpdemux/muxer_avi.c

Modified: trunk/libmpdemux/muxer_avi.c
==============================================================================
--- trunk/libmpdemux/muxer_avi.c	Sun Feb 14 16:10:45 2016	(r37730)
+++ trunk/libmpdemux/muxer_avi.c	Sun Feb 14 16:24:00 2016	(r37731)
@@ -274,7 +274,7 @@ static void avifile_write_header(muxer_t
   }
 
   // update AVI header:
-  if(muxer->def_v){
+  {
       int i;
       muxer->avih.dwMicroSecPerFrame=1000000.0*muxer->def_v->h.dwScale/muxer->def_v->h.dwRate;
 //      muxer->avih.dwMaxBytesPerSec=1000000; // dummy!!!!! FIXME


More information about the MPlayer-cvslog mailing list