#3554: lavfi.c: variable 'sink' is used uninitialized whenever type ==
AVMEDIA_TYPE_AUDIO
-------------------------------------+------------------------------------
Reporter: jeremyhu | Owner:
Type: defect | Status: new
Priority: normal | Component: avdevice
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+------------------------------------
Comment (by DonMoir):
...
AVFilterContext *sink;
...
if (type == AVMEDIA_TYPE_VIDEO) {
...
... ok sink set
}
else if (type == AVMEDIA_TYPE_AUDIO) {
...
... ok sink set
}
else {
sink not set - remove test for audio if only can be video/audio
otherwise maybe
skip it, error, set to null, or who knows.
}
lavfi->sinks[i] = sink;
...
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3554#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac