diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-04-12 20:55:25 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-05-10 01:47:37 +0400 |
commit | 8ae19143277e8c740e1cdeb280cfdf4c47a3eb23 (patch) | |
tree | b420bd2ae6c5fc9bec55ee048f50ba6a1235b05a | |
parent | eeeefd500124a1ec3a7ca75d9c071c5517c3d153 (diff) |
vcr1enc: drop pointless empty encode_init() wrapper function
-rw-r--r-- | libavcodec/vcr1.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c index e3e45cc6a5..7edd801b8f 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"), }; |