[Sumover-dev] [svn commit] r4734 - vic/branches/mpeg4/codec

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Sun Mar 28 08:59:52 BST 2010


Author: douglask
Date: Sun Mar 28 08:59:52 2010
New Revision: 4734

Modified:
   vic/branches/mpeg4/codec/ffmpeg_codec.cpp

Log:
Fix assert statement which should have been using <= rather than < for 1920*1080 frames.

Patch suggested by Andrew Ford.

Modified: vic/branches/mpeg4/codec/ffmpeg_codec.cpp
==============================================================================
--- vic/branches/mpeg4/codec/ffmpeg_codec.cpp	(original)
+++ vic/branches/mpeg4/codec/ffmpeg_codec.cpp	Sun Mar 28 08:59:52 2010
@@ -273,7 +273,7 @@
     width = w;
     height = h;
     frame_size = width * height;
-    assert(frame_size * 3 / 2 < MAX_FRAME_SIZE);
+    assert(frame_size * 3 / 2 <= MAX_FRAME_SIZE);
 }
 
 void FFMpegCodec::set_gop(int gop_)



More information about the Sumover-dev mailing list