Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2013/04/12 16:45:14... | ... |
@@ -320,8 +320,8 @@ unsigned av_buffersrc_get_nb_failed_requests(AVFilterContext *buffer_src) |
320 | 320 |
|
321 | 321 |
static const AVOption buffer_options[] = { |
322 | 322 |
{ "width", NULL, OFFSET(w), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, V }, |
323 |
- { "height", NULL, OFFSET(h), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, V }, |
|
324 | 323 |
{ "video_size", NULL, OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, .flags = V }, |
324 |
+ { "height", NULL, OFFSET(h), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, V }, |
|
325 | 325 |
{ "pix_fmt", NULL, OFFSET(pix_fmt), AV_OPT_TYPE_PIXEL_FMT, .flags = V }, |
326 | 326 |
#if FF_API_OLD_FILTER_OPTS |
327 | 327 |
/* those 4 are for compatibility with the old option passing system where each filter |
... | ... |
@@ -507,9 +507,6 @@ static const AVFilterPad avfilter_vsrc_buffer_outputs[] = { |
507 | 507 |
{ NULL } |
508 | 508 |
}; |
509 | 509 |
|
510 |
-static const char *const buffer_shorthand[] = { "width", "height", "pix_fmt", |
|
511 |
- "time_base_num", "time_base_den", "sar_num", "sar_den", NULL }; |
|
512 |
- |
|
513 | 510 |
AVFilter avfilter_vsrc_buffer = { |
514 | 511 |
.name = "buffer", |
515 | 512 |
.description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them accessible to the filterchain."), |
... | ... |
@@ -522,7 +519,6 @@ AVFilter avfilter_vsrc_buffer = { |
522 | 522 |
.inputs = NULL, |
523 | 523 |
.outputs = avfilter_vsrc_buffer_outputs, |
524 | 524 |
.priv_class = &buffer_class, |
525 |
- .shorthand = buffer_shorthand, |
|
526 | 525 |
}; |
527 | 526 |
|
528 | 527 |
static const AVFilterPad avfilter_asrc_abuffer_outputs[] = { |