mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 14:49:29 +00:00
Reorder decoder functions
This will make further commits more readable.
This commit is contained in:
parent
1be76c5113
commit
d470943505
1 changed files with 5 additions and 5 deletions
|
@ -6,11 +6,6 @@
|
||||||
#include "video_buffer.h"
|
#include "video_buffer.h"
|
||||||
#include "util/log.h"
|
#include "util/log.h"
|
||||||
|
|
||||||
void
|
|
||||||
decoder_init(struct decoder *decoder, struct video_buffer *vb) {
|
|
||||||
decoder->video_buffer = vb;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
decoder_open(struct decoder *decoder, const AVCodec *codec) {
|
decoder_open(struct decoder *decoder, const AVCodec *codec) {
|
||||||
decoder->codec_ctx = avcodec_alloc_context3(codec);
|
decoder->codec_ctx = avcodec_alloc_context3(codec);
|
||||||
|
@ -63,3 +58,8 @@ decoder_push(struct decoder *decoder, const AVPacket *packet) {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
decoder_init(struct decoder *decoder, struct video_buffer *vb) {
|
||||||
|
decoder->video_buffer = vb;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue