Fix nonsense non-mod16 AMV flipping code.

It is obviously nonsense since it produces wrong results
or even crashes (crashes should be encode-only though).
Fixes trac issue #1092.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/mjpegenc: allow encoding amv with height % 16 != 0 when strict -1 is set

This should make it simpler for users to test if such videos work

Suggested-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/dpx_parser: fix off by 1 error

Found-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/opt: add opt_size()

If people want, this could be exported as av_opt_size()
avutil/opt: add av_opt_copy()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/options: use av_opt_copy() in avcodec_copy_context() to copy priv_data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Report "unknown codec" instead of "unspecifed size" if the codec is unknown.