Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol authored on 2012/11/05 22:34:08... | ... |
@@ -89,8 +89,8 @@ static int query_formats(AVFilterContext *ctx) |
89 | 89 |
AVFilterChannelLayouts *layouts = NULL; |
90 | 90 |
AVFilterLink *inlink = ctx->inputs[0]; |
91 | 91 |
AVFilterLink *outlink = ctx->outputs[0]; |
92 |
- static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16P, -1 }; |
|
93 |
- static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_RGB24, -1 }; |
|
92 |
+ static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_NONE }; |
|
93 |
+ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE }; |
|
94 | 94 |
|
95 | 95 |
/* set input audio formats */ |
96 | 96 |
formats = ff_make_format_list(sample_fmts); |
... | ... |
@@ -87,8 +87,8 @@ static int query_formats(AVFilterContext *ctx) |
87 | 87 |
AVFilterChannelLayouts *layouts = NULL; |
88 | 88 |
AVFilterLink *inlink = ctx->inputs[0]; |
89 | 89 |
AVFilterLink *outlink = ctx->outputs[0]; |
90 |
- static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16, -1 }; |
|
91 |
- static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, -1 }; |
|
90 |
+ static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }; |
|
91 |
+ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }; |
|
92 | 92 |
|
93 | 93 |
/* set input audio formats */ |
94 | 94 |
formats = ff_make_format_list(sample_fmts); |
... | ... |
@@ -649,9 +649,9 @@ static int query_formats(AVFilterContext *ctx) |
649 | 649 |
AVFilterLink *inlink = ctx->inputs[0]; |
650 | 650 |
AVFilterLink *outlink = ctx->outputs[0]; |
651 | 651 |
|
652 |
- static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_DBL, -1 }; |
|
652 |
+ static const enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_NONE }; |
|
653 | 653 |
static const int input_srate[] = {48000, -1}; // ITU-R BS.1770 provides coeff only for 48kHz |
654 |
- static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_RGB24, -1 }; |
|
654 |
+ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE }; |
|
655 | 655 |
|
656 | 656 |
/* set input audio formats */ |
657 | 657 |
formats = ff_make_format_list(sample_fmts); |
... | ... |
@@ -33,7 +33,7 @@ |
33 | 33 |
|
34 | 34 |
AVBufferSinkParams *av_buffersink_params_alloc(void) |
35 | 35 |
{ |
36 |
- static const int pixel_fmts[] = { -1 }; |
|
36 |
+ static const int pixel_fmts[] = { AV_PIX_FMT_NONE }; |
|
37 | 37 |
AVBufferSinkParams *params = av_malloc(sizeof(AVBufferSinkParams)); |
38 | 38 |
if (!params) |
39 | 39 |
return NULL; |
... | ... |
@@ -44,7 +44,7 @@ AVBufferSinkParams *av_buffersink_params_alloc(void) |
44 | 44 |
|
45 | 45 |
AVABufferSinkParams *av_abuffersink_params_alloc(void) |
46 | 46 |
{ |
47 |
- static const int sample_fmts[] = { -1 }; |
|
47 |
+ static const int sample_fmts[] = { AV_SAMPLE_FMT_NONE }; |
|
48 | 48 |
static const int64_t channel_layouts[] = { -1 }; |
49 | 49 |
AVABufferSinkParams *params = av_malloc(sizeof(AVABufferSinkParams)); |
50 | 50 |
|