[FFmpeg-devel] MXF : default fied dominance is TFF

Michael Niedermayer michaelni at gmx.at
Tue Sep 9 12:37:43 CEST 2014


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140909/0642d337/attachment.asc>


More information about the ffmpeg-devel mailing list