On Mon, Sep 08, 2014 at 12:17:14PM +0000, Gaullier Nicolas wrote: > I did not found an easy way to set up initialization values to properly > handle defaults but I am not a highly skilled developer, and maybe someone > will find how to implement this more elegantly. > They are also many other properties in mxf that are only optional, for > example component depth and horizontal/vertical subsampling factors that are > actually parsed, but as far from now it does not seem sufficiently useful to > distinguish between the initialization value '0' and 'not present'. > In my opinion, in the solely case of the field dominance, when it is > found/set to '0', it seems interesting to fail/raise a warning at least, but > it is somewhat particular and should not involve a big code refactoring to > handle this.
field_dominance could be initilaized to -1 (or some named identifer that is -1) and a case -1 be added to the switch() [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If a bugfix only changes things apparently unrelated to the bug with no further explanation, that is a good sign that the bugfix is wrong.
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel