[FFmpeg-trac] #95(FFmpeg:new): copytb not initialized to it's default value
FFmpeg
trac at avcodec.org
Fri Apr 22 19:32:31 CEST 2011
#95: copytb not initialized to it's default value
---------------------------+---------------------
Reporter: RLeatherwood | Owner: michael
Type: defect | Status: new
Priority: normal | Component: FFmpeg
Version: unspecified | Keywords: copytb
Blocked By: | Blocking:
Reproduced: 0 | Analyzed: 0
---------------------------+---------------------
The copytb option was added back on SVN 26340. The variable copytb that
holds the option's value is declared without being initialized. I assume
that the default value is supposed to be zero (and that a compiler would
initialize it to zero). Still it looks out of place without its default
value explicitly set.
Current code:
{{{
static float audio_drift_threshold= 0.1;
static int copy_ts= 0;
static int copy_tb;
static int opt_shortest = 0;
}}}
I have attached a patch that explicitly initializes this variable to 0
(assumed default).
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/95>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list