diff --git a/app/src/decoder.c b/app/src/decoder.c index 247b459c..3b94afef 100644 --- a/app/src/decoder.c +++ b/app/src/decoder.c @@ -6,11 +6,6 @@ #include "video_buffer.h" #include "util/log.h" -void -decoder_init(struct decoder *decoder, struct video_buffer *vb) { - decoder->video_buffer = vb; -} - bool decoder_open(struct decoder *decoder, const AVCodec *codec) { decoder->codec_ctx = avcodec_alloc_context3(codec); @@ -63,3 +58,8 @@ decoder_push(struct decoder *decoder, const AVPacket *packet) { } return true; } + +void +decoder_init(struct decoder *decoder, struct video_buffer *vb) { + decoder->video_buffer = vb; +}