[FFmpeg-cvslog] avfilter: remove redundant .get_(audio/video)_buffer initializations

Paul B Mahol git at videolan.org
Sat Sep 7 20:21:42 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Sep  7 13:26:11 2013 +0000| [b077d8d9082d057d4c7abd9e0b1a98f9651cfaa8] | committer: Paul B Mahol

avfilter: remove redundant .get_(audio/video)_buffer initializations

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b077d8d9082d057d4c7abd9e0b1a98f9651cfaa8
---

 libavfilter/af_ashowinfo.c     |    1 -
 libavfilter/af_silencedetect.c |    1 -
 libavfilter/af_volumedetect.c  |    1 -
 libavfilter/f_ebur128.c        |    1 -
 libavfilter/f_select.c         |    2 --
 libavfilter/f_sendcmd.c        |    2 --
 libavfilter/f_settb.c          |    2 --
 libavfilter/f_zmq.c            |    1 -
 libavfilter/fifo.c             |    2 --
 libavfilter/setpts.c           |    2 --
 libavfilter/split.c            |    2 --
 libavfilter/vf_alphamerge.c    |    1 -
 libavfilter/vf_aspect.c        |    2 --
 libavfilter/vf_blackdetect.c   |    1 -
 libavfilter/vf_blackframe.c    |    1 -
 libavfilter/vf_copy.c          |    1 -
 libavfilter/vf_crop.c          |    1 -
 libavfilter/vf_cropdetect.c    |    1 -
 libavfilter/vf_delogo.c        |    1 -
 libavfilter/vf_drawbox.c       |    1 -
 libavfilter/vf_drawtext.c      |    1 -
 libavfilter/vf_fade.c          |    1 -
 libavfilter/vf_field.c         |    1 -
 libavfilter/vf_format.c        |    2 --
 libavfilter/vf_il.c            |    1 -
 libavfilter/vf_mpdecimate.c    |    1 -
 libavfilter/vf_overlay.c       |    1 -
 libavfilter/vf_removelogo.c    |    1 -
 libavfilter/vf_setfield.c      |    1 -
 libavfilter/vf_showinfo.c      |    1 -
 libavfilter/vf_thumbnail.c     |    1 -
 31 files changed, 39 deletions(-)

diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c
index 08a6395..84dd650 100644
--- a/libavfilter/af_ashowinfo.c
+++ b/libavfilter/af_ashowinfo.c
@@ -103,7 +103,6 @@ static const AVFilterPad inputs[] = {
     {
         .name       = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL },
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c
index cf559d4..e2544d6 100644
--- a/libavfilter/af_silencedetect.c
+++ b/libavfilter/af_silencedetect.c
@@ -141,7 +141,6 @@ static const AVFilterPad silencedetect_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c
index f00836f..da1fb4b 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -135,7 +135,6 @@ static const AVFilterPad volumedetect_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index 99e12af..0463bd6 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -779,7 +779,6 @@ static const AVFilterPad ebur128_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
         .config_props     = config_audio_input,
     },
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index 07a64f3..dfad317 100644
--- a/libavfilter/f_select.c
+++ b/libavfilter/f_select.c
@@ -470,7 +470,6 @@ static const AVFilterPad avfilter_af_aselect_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .config_props     = config_input,
         .filter_frame     = filter_frame,
     },
@@ -514,7 +513,6 @@ static const AVFilterPad avfilter_vf_select_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .config_props     = config_input,
         .filter_frame     = filter_frame,
     },
diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c
index bb8a178..1a7f6a1 100644
--- a/libavfilter/f_sendcmd.c
+++ b/libavfilter/f_sendcmd.c
@@ -514,7 +514,6 @@ static const AVFilterPad sendcmd_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
@@ -550,7 +549,6 @@ static const AVFilterPad asendcmd_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/f_settb.c b/libavfilter/f_settb.c
index b1eac71..78691ea 100644
--- a/libavfilter/f_settb.c
+++ b/libavfilter/f_settb.c
@@ -129,7 +129,6 @@ static const AVFilterPad avfilter_vf_settb_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
@@ -165,7 +164,6 @@ static const AVFilterPad avfilter_af_asettb_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/f_zmq.c b/libavfilter/f_zmq.c
index 547e1a3..c1b2730 100644
--- a/libavfilter/f_zmq.c
+++ b/libavfilter/f_zmq.c
@@ -248,7 +248,6 @@ static const AVFilterPad azmq_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/fifo.c b/libavfilter/fifo.c
index c6beaf6..3e91298 100644
--- a/libavfilter/fifo.c
+++ b/libavfilter/fifo.c
@@ -254,7 +254,6 @@ static const AVFilterPad avfilter_vf_fifo_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = add_to_queue,
     },
     { NULL }
@@ -286,7 +285,6 @@ static const AVFilterPad avfilter_af_afifo_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = add_to_queue,
     },
     { NULL }
diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c
index 3dd4e6a..12d1b5b 100644
--- a/libavfilter/setpts.c
+++ b/libavfilter/setpts.c
@@ -232,7 +232,6 @@ static const AVFilterPad avfilter_vf_setpts_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .config_props     = config_input,
         .filter_frame     = filter_frame,
     },
@@ -270,7 +269,6 @@ static const AVFilterPad asetpts_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .config_props     = config_input,
         .filter_frame     = filter_frame,
     },
diff --git a/libavfilter/split.c b/libavfilter/split.c
index f3fe233..ccc34aa 100644
--- a/libavfilter/split.c
+++ b/libavfilter/split.c
@@ -108,7 +108,6 @@ static const AVFilterPad avfilter_vf_split_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
@@ -134,7 +133,6 @@ static const AVFilterPad avfilter_af_asplit_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_AUDIO,
-        .get_audio_buffer = ff_null_get_audio_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_alphamerge.c b/libavfilter/vf_alphamerge.c
index 644c7f4..0e5ee22 100644
--- a/libavfilter/vf_alphamerge.c
+++ b/libavfilter/vf_alphamerge.c
@@ -175,7 +175,6 @@ static const AVFilterPad alphamerge_inputs[] = {
         .name             = "main",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = config_input_main,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
         .needs_writable   = 1,
     },{
diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c
index 22d6c70..5ff457e 100644
--- a/libavfilter/vf_aspect.c
+++ b/libavfilter/vf_aspect.c
@@ -143,7 +143,6 @@ static const AVFilterPad avfilter_vf_setdar_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = setdar_config_props,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
@@ -208,7 +207,6 @@ static const AVFilterPad avfilter_vf_setsar_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = setsar_config_props,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_blackdetect.c b/libavfilter/vf_blackdetect.c
index c96ad40..23c53bd 100644
--- a/libavfilter/vf_blackdetect.c
+++ b/libavfilter/vf_blackdetect.c
@@ -179,7 +179,6 @@ static const AVFilterPad blackdetect_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = config_input,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_blackframe.c b/libavfilter/vf_blackframe.c
index b83e1f8..34fc3f1 100644
--- a/libavfilter/vf_blackframe.c
+++ b/libavfilter/vf_blackframe.c
@@ -107,7 +107,6 @@ static const AVFilterPad avfilter_vf_blackframe_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_copy.c b/libavfilter/vf_copy.c
index b9859c4..2c14fc0 100644
--- a/libavfilter/vf_copy.c
+++ b/libavfilter/vf_copy.c
@@ -48,7 +48,6 @@ static const AVFilterPad avfilter_vf_copy_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index e112c23..68d1822 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -318,7 +318,6 @@ static const AVFilterPad avfilter_vf_crop_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .filter_frame     = filter_frame,
-        .get_video_buffer = ff_null_get_video_buffer,
         .config_props     = config_input,
     },
     { NULL }
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index 184b769..d194e7c 100644
--- a/libavfilter/vf_cropdetect.c
+++ b/libavfilter/vf_cropdetect.c
@@ -226,7 +226,6 @@ static const AVFilterPad avfilter_vf_cropdetect_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = config_input,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c
index 971e986..7ddb5c3 100644
--- a/libavfilter/vf_delogo.c
+++ b/libavfilter/vf_delogo.c
@@ -264,7 +264,6 @@ static const AVFilterPad avfilter_vf_delogo_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c
index 7dff875..30d3dec 100644
--- a/libavfilter/vf_drawbox.c
+++ b/libavfilter/vf_drawbox.c
@@ -257,7 +257,6 @@ static const AVFilterPad drawbox_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = config_input,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
         .needs_writable   = 1,
     },
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 9240543..3fca6fc 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1041,7 +1041,6 @@ static const AVFilterPad avfilter_vf_drawtext_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
         .config_props     = config_input,
         .needs_writable   = 1,
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index 6c9b225..82aecbc 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -326,7 +326,6 @@ static const AVFilterPad avfilter_vf_fade_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = config_props,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
         .needs_writable   = 1,
     },
diff --git a/libavfilter/vf_field.c b/libavfilter/vf_field.c
index b281945..e6f8b73 100644
--- a/libavfilter/vf_field.c
+++ b/libavfilter/vf_field.c
@@ -88,7 +88,6 @@ static const AVFilterPad field_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c
index 25b3d19..c9ccad9 100644
--- a/libavfilter/vf_format.c
+++ b/libavfilter/vf_format.c
@@ -116,7 +116,6 @@ static const AVFilterPad avfilter_vf_format_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
     },
     { NULL }
 };
@@ -159,7 +158,6 @@ static const AVFilterPad avfilter_vf_noformat_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
     },
     { NULL }
 };
diff --git a/libavfilter/vf_il.c b/libavfilter/vf_il.c
index f3a1dc1..da3afc1 100644
--- a/libavfilter/vf_il.c
+++ b/libavfilter/vf_il.c
@@ -186,7 +186,6 @@ static const AVFilterPad inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
         .config_props     = config_input,
     },
diff --git a/libavfilter/vf_mpdecimate.c b/libavfilter/vf_mpdecimate.c
index 45d510b..9366e86 100644
--- a/libavfilter/vf_mpdecimate.c
+++ b/libavfilter/vf_mpdecimate.c
@@ -229,7 +229,6 @@ static const AVFilterPad mpdecimate_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .config_props     = config_input,
         .filter_frame     = filter_frame,
     },
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 7d93c9e..f3e7891 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -601,7 +601,6 @@ static const AVFilterPad avfilter_vf_overlay_inputs[] = {
     {
         .name         = "main",
         .type         = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .config_props = config_input_main,
         .filter_frame = filter_frame_main,
         .needs_writable = 1,
diff --git a/libavfilter/vf_removelogo.c b/libavfilter/vf_removelogo.c
index 2b385fc..50bd199 100644
--- a/libavfilter/vf_removelogo.c
+++ b/libavfilter/vf_removelogo.c
@@ -553,7 +553,6 @@ static const AVFilterPad removelogo_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .config_props     = config_props_input,
         .filter_frame     = filter_frame,
     },
diff --git a/libavfilter/vf_setfield.c b/libavfilter/vf_setfield.c
index 4d42cfa..c45dbf3 100644
--- a/libavfilter/vf_setfield.c
+++ b/libavfilter/vf_setfield.c
@@ -71,7 +71,6 @@ static const AVFilterPad setfield_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c
index 82becc4..9e016c0 100644
--- a/libavfilter/vf_showinfo.c
+++ b/libavfilter/vf_showinfo.c
@@ -79,7 +79,6 @@ static const AVFilterPad avfilter_vf_showinfo_inputs[] = {
     {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index f0bb3db..0ce6312 100644
--- a/libavfilter/vf_thumbnail.c
+++ b/libavfilter/vf_thumbnail.c
@@ -212,7 +212,6 @@ static const AVFilterPad thumbnail_inputs[] = {
         .name             = "default",
         .type             = AVMEDIA_TYPE_VIDEO,
         .config_props     = config_props,
-        .get_video_buffer = ff_null_get_video_buffer,
         .filter_frame     = filter_frame,
     },
     { NULL }



More information about the ffmpeg-cvslog mailing list