This patch for libdv-0.104. It addresses a minor
problem with exporting to a RAW DV file where audio
noise is introduced. The problem arises when
samples_this_frame == 0 and dv_encode_full_audio()
calculates audio.bytesperframe. When bytesperframe is
calculated, its units are bytes (correct), but
_dv_raw_insert_audio() then assumes the units are
samples (wrong).
In contrast, when samples_this_frame != 0,
audio.bytesperframe is set to samples_this_frame and
_dv_raw_insert_audio() is then correct to treat the
value as samples. So depending on samples_this_frame,
the units of audio.bytesperframe is either bytes or
samples.
This patch corrects the use of audio.bytesperframe so
units are always bytes.
patch for dv export
Logged In: YES
user_id=78682
Thanks, I applied it to CVS as of ChangeLog Rev 1.120.