mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
doc/examples/filtering_audio: init packet0.data
Fixes use of uinitialized data and crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6ca0ac5e55
commit
210a78aeb5
@ -220,6 +220,7 @@ int main(int argc, char **argv)
|
||||
goto end;
|
||||
|
||||
/* read all packets */
|
||||
packet0.data = NULL;
|
||||
packet.data = NULL;
|
||||
while (1) {
|
||||
if (!packet0.data) {
|
||||
|
Loading…
Reference in New Issue
Block a user