Menu

Commit [r2209]  Maximize  Restore  History

There were actually several fencepost errors in mpegconsts.c (and in

mplex as well), due to inconsistencies in how the mpeg_aspect_ratio
and mpeg_framerate arrays were constructed/used.

I restructured the code a bit to clean up the interface, so that I
could fix the bugs (without going cross-eyed) and to make it less
susceptible to such errors in the future.

Andrew: I do indeed step most gingerly when I walk into your code!
I'm not married to this revised interface in mpegconsts.[ch],
but it's a little cleaner and it fixes some plain old bugs.

mdoggydog 2004-02-03

changed /trunk/mjpeg_play/mpeg2enc/mpeg2enc.cc
changed /trunk/mjpeg_play/mpeg2enc/mpeg2encoptions.cc
changed /trunk/mjpeg_play/mplex/videostrm_in.cpp
changed /trunk/mjpeg_play/mplex/zalphastrm_in.cpp
changed /trunk/mjpeg_play/utils/mpegconsts.c
changed /trunk/mjpeg_play/utils/mpegconsts.h
/trunk/mjpeg_play/mpeg2enc/mpeg2enc.cc Diff Switch to side-by-side view
Loading...
/trunk/mjpeg_play/mpeg2enc/mpeg2encoptions.cc Diff Switch to side-by-side view
Loading...
/trunk/mjpeg_play/mplex/videostrm_in.cpp Diff Switch to side-by-side view
Loading...
/trunk/mjpeg_play/mplex/zalphastrm_in.cpp Diff Switch to side-by-side view
Loading...
/trunk/mjpeg_play/utils/mpegconsts.c Diff Switch to side-by-side view
Loading...
/trunk/mjpeg_play/utils/mpegconsts.h Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.