From 1f4f752117c0519345a1b0a725a57440cc8924ec Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 14 Apr 2012 15:40:58 +0200 Subject: libschroedinger: Move a function to avoid a forward declaration. --- libavcodec/libschroedingerdec.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libavcodec/libschroedingerdec.c') diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c index 68d9a255ef..1e632de017 100644 --- a/libavcodec/libschroedingerdec.c +++ b/libavcodec/libschroedingerdec.c @@ -71,7 +71,10 @@ typedef struct SchroParseUnitContext { static void libschroedinger_decode_buffer_free(SchroBuffer *schro_buf, - void *priv); + void *priv) +{ + av_freep(&priv); +} static void SchroParseContextInit(SchroParseUnitContext *parse_ctx, const uint8_t *buf, int buf_size) @@ -156,12 +159,6 @@ static av_cold int libschroedinger_decode_init(AVCodecContext *avccontext) return 0; } -static void libschroedinger_decode_buffer_free(SchroBuffer *schro_buf, - void *priv) -{ - av_freep(&priv); -} - static void libschroedinger_decode_frame_free(void *frame) { schro_frame_unref(frame); -- cgit v1.2.3