Commit 06029fbb authored by Paul B Mahol's avatar Paul B Mahol

escape130: minimal effort to make it compile without warnings

parent 7d643914
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "avcodec.h" #include "avcodec.h"
#define ALT_BITSTREAM_READER_LE #define ALT_BITSTREAM_READER_LE
#include "bitstream.h" #include "get_bits.h"
typedef struct Escape130Context { typedef struct Escape130Context {
AVFrame frame; AVFrame frame;
...@@ -91,8 +91,10 @@ static unsigned decode_skip_count(GetBitContext* gb) { ...@@ -91,8 +91,10 @@ static unsigned decode_skip_count(GetBitContext* gb) {
*/ */
static int escape130_decode_frame(AVCodecContext *avctx, static int escape130_decode_frame(AVCodecContext *avctx,
void *data, int *data_size, void *data, int *data_size,
const uint8_t *buf, int buf_size) AVPacket *avpkt)
{ {
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
Escape130Context *s = avctx->priv_data; Escape130Context *s = avctx->priv_data;
GetBitContext gb; GetBitContext gb;
...@@ -294,14 +296,14 @@ static int escape130_decode_frame(AVCodecContext *avctx, ...@@ -294,14 +296,14 @@ static int escape130_decode_frame(AVCodecContext *avctx,
} }
AVCodec escape130_decoder = { AVCodec ff_escape130_decoder = {
"escape130", .name = "escape130",
CODEC_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
CODEC_ID_ESCAPE130, .id = CODEC_ID_ESCAPE130,
sizeof(Escape130Context), .priv_data_size = sizeof(Escape130Context),
escape130_decode_init, .init = escape130_decode_init,
NULL, .close = escape130_decode_close,
escape130_decode_close, .decode = escape130_decode_frame,
escape130_decode_frame, .capabilities = CODEC_CAP_DR1,
CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("Escape 130"),
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment