mirror of
https://github.com/livepeer/lpms
synced 2026-04-22 15:57:25 +08:00
79e6dcf080
Fixes a number of things including a LPMS crash, choppy video quality, green screens during rotation, inconsistent frame counts vs software decoding, etc. We also apparently gained GPU support for MPEG2 decoding. This is a massive change: we can no longer add outputs up front due to the ffmpeg hwaccel API, so we have to wait until we receive a decoded video frame in order to add outputs. This also means properly queuing up audio and draining things in the same order.
9 lines
321 B
C
9 lines
321 B
C
|
|
#include <libavutil/fifo.h>
|
|
#include <libavcodec/avcodec.h>
|
|
|
|
AVFifo* queue_create();
|
|
void queue_free(AVFifo **fifo);
|
|
int queue_write(AVFifo *fifo, const AVPacket *pkt, const AVFrame *frame, int decoder_return);
|
|
int queue_read(AVFifo *fifo, AVFrame *out_frame, AVPacket *out_pkt, int *stream_index, int *decoder_return);
|