Reorder decoder functions
This will make further commits more readable.
This commit is contained in:
parent
5980183a33
commit
5beb7d6c02
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue