OSDN Git Service

lavfi/abuffer: init the data planes with NULL pointers.
authorClément Bœsch <clement.boesch@smartjog.com>
Wed, 15 Feb 2012 14:07:09 +0000 (15:07 +0100)
committerClément Bœsch <ubitux@gmail.com>
Tue, 21 Feb 2012 15:45:34 +0000 (16:45 +0100)
commit241f8465d07ecc0696bcda994a1f44d836b8809c
tree99743e86f6c015c80060db2fce2be02b812d126c
parenteadd4264ee4319abf9ec2f618ff925d7529f20ed
lavfi/abuffer: init the data planes with NULL pointers.

Samples buffer ref is allocated and loaded with the uninitialized data
pointers:
     av_asrc_buffer_add_buffer()
  -> av_asrc_buffer_add_samples()
  -> avfilter_get_audio_buffer_ref_from_arrays(data, ...)

...which leads to a crash with at least lavfi/ashowinfo in case of !NULL
(see the for loop while samplesref->data[plane]).
libavfilter/asrc_abuffer.c