Menu

Commit [r2718]  Maximize  Restore  History

avoid overflow in the average P (and B) frame size. This was observed when

there were 241817 P frames of ~18KB each. Basically 4GB (32bits) isn't
enough when building m2v files destined for a dual layer disk.

Fix was to use int64_t for the avg_frames array and then cast the average
size to (int). It is highly unlikely that the average frame size will
exceed an 'int'.

sms00 2005-04-12

changed /trunk/mjpeg_play/mplex/videostrm.hpp
changed /trunk/mjpeg_play/mplex/videostrm_in.cpp
/trunk/mjpeg_play/mplex/videostrm.hpp Diff Switch to side-by-side view
Loading...
/trunk/mjpeg_play/mplex/videostrm_in.cpp Diff Switch to side-by-side view
Loading...
Auth0 Logo