[FFmpeg-cvslog] vcr1enc: drop pointless empty encode_init() wrapper function

Diego Biurrun git at videolan.org
Thu May 10 23:33:14 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Thu Apr 12 18:55:25 2012 +0200| [8ae19143277e8c740e1cdeb280cfdf4c47a3eb23] | committer: Diego Biurrun

vcr1enc: drop pointless empty encode_init() wrapper function

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

 libavcodec/vcr1.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c
index e3e45cc..7edd801 100644
--- a/libavcodec/vcr1.c
+++ b/libavcodec/vcr1.c
@@ -172,19 +172,12 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
     return size * 4;
 }
 
-static av_cold int encode_init(AVCodecContext *avctx)
-{
-    common_init(avctx);
-
-    return 0;
-}
-
 AVCodec ff_vcr1_encoder = {
     .name           = "vcr1",
     .type           = AVMEDIA_TYPE_VIDEO,
     .id             = CODEC_ID_VCR1,
     .priv_data_size = sizeof(VCR1Context),
-    .init           = encode_init,
+    .init           = common_init,
     .encode         = encode_frame,
     .long_name      = NULL_IF_CONFIG_SMALL("ATI VCR1"),
 };



More information about the ffmpeg-cvslog mailing list