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
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-05 17:34:08 +0400
committerPaul B Mahol <onemda@gmail.com>2012-11-05 17:34:08 +0400
commite870a7dd4ab1de56bb24080ee047321a7240ae69 (patch)
tree512c180a9fa3be546b6ae813d1523b8ba803c0c4 /libavfilter/sink_buffer.c
parentf4aaf987a588fcf5978e636edf2193df35b3e83b (diff)
lavfi: stop using -1 instead use AV_PIX_FMT_NONE/AV_SAMPLE_FMT_NONE
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r--libavfilter/sink_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c
index 7d3958856f..358b3e86f7 100644
--- a/libavfilter/sink_buffer.c
+++ b/libavfilter/sink_buffer.c
@@ -33,7 +33,7 @@
AVBufferSinkParams *av_buffersink_params_alloc(void)
{
- static const int pixel_fmts[] = { -1 };
+ static const int pixel_fmts[] = { AV_PIX_FMT_NONE };
AVBufferSinkParams *params = av_malloc(sizeof(AVBufferSinkParams));
if (!params)
return NULL;
@@ -44,7 +44,7 @@ AVBufferSinkParams *av_buffersink_params_alloc(void)
AVABufferSinkParams *av_abuffersink_params_alloc(void)
{
- static const int sample_fmts[] = { -1 };
+ static const int sample_fmts[] = { AV_SAMPLE_FMT_NONE };
static const int64_t channel_layouts[] = { -1 };
AVABufferSinkParams *params = av_malloc(sizeof(AVABufferSinkParams));