Hi, The nut muxer stores frame_bytes + 2 in FrameCode.size_mul, which is uint16_t, with frame_bytes taken from block_align. nBlockAlign is a 16 bit field in wav/avi/asf, so 65534 reaches the muxer unmodified, wraps to 0, and get_needed_flags() then divides pkt->size by it:
ffmpeg -i poc.wav -c copy out.nut
Floating point exception (core dumped)
Streams whose frame size is not representable now get no size optimised
frame codes instead. The clamp only triggers below 0 and above
UINT16_MAX - 2, so streams that already worked produce bit identical
output.
Patch attached. fate-lavf-nut passes unchanged.
Thanks,
Sanil
EMAIL-2-nutenc.patch
Description: Binary data
_______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
