diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-04-14 15:40:58 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-05-07 10:35:25 +0200 |
commit | 1f4f752117c0519345a1b0a725a57440cc8924ec (patch) | |
tree | 8d3946c83c647d645dd6c25e2ce67f629bec074a | |
parent | b68c4ac2936c0e407da869a4f0919c26e2c16645 (diff) | |
download | ffmpeg-1f4f752117c0519345a1b0a725a57440cc8924ec.tar.gz |
libschroedinger: Move a function to avoid a forward declaration.
-rw-r--r-- | libavcodec/libschroedingerdec.c | 11 |
1 files changed, 4 insertions, 7 deletions
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); |