Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-29 17:50:29 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-06-29 18:26:38 +0400
commitcddbf95c5f0dea1bb1a18271393ad2a020883fe4 (patch)
tree475269eba3f899caf1bc4f5febab414340ce7c17 /doc
parentd5f817793e297e5ed0277df7813897d87ba51e30 (diff)
doc/examples/resampling_audio: use av_freep() for saftey
also its better in examples to use the safer functions. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/resampling_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/resampling_audio.c b/doc/examples/resampling_audio.c
index f743cbe550..8a43b09039 100644
--- a/doc/examples/resampling_audio.c
+++ b/doc/examples/resampling_audio.c
@@ -168,7 +168,7 @@ int main(int argc, char **argv)
dst_nb_samples = av_rescale_rnd(swr_get_delay(swr_ctx, src_rate) +
src_nb_samples, dst_rate, src_rate, AV_ROUND_UP);
if (dst_nb_samples > max_dst_nb_samples) {
- av_free(dst_data[0]);
+ av_freep(&dst_data[0]);
ret = av_samples_alloc(dst_data, &dst_linesize, dst_nb_channels,
dst_nb_samples, dst_sample_fmt, 1);
if (ret < 0)