Commit 94437e44 authored by Paul B Mahol's avatar Paul B Mahol

avcodecc/cscd: fix some obvious style issues

parent aa76bdea
...@@ -38,7 +38,8 @@ typedef struct CamStudioContext { ...@@ -38,7 +38,8 @@ typedef struct CamStudioContext {
} CamStudioContext; } CamStudioContext;
static void copy_frame_default(AVFrame *f, const uint8_t *src, static void copy_frame_default(AVFrame *f, const uint8_t *src,
int linelen, int height) { int linelen, int height)
{
int i, src_stride = FFALIGN(linelen, 4); int i, src_stride = FFALIGN(linelen, 4);
uint8_t *dst = f->data[0]; uint8_t *dst = f->data[0];
dst += (height - 1) * f->linesize[0]; dst += (height - 1) * f->linesize[0];
...@@ -50,7 +51,8 @@ static void copy_frame_default(AVFrame *f, const uint8_t *src, ...@@ -50,7 +51,8 @@ static void copy_frame_default(AVFrame *f, const uint8_t *src,
} }
static void add_frame_default(AVFrame *f, const uint8_t *src, static void add_frame_default(AVFrame *f, const uint8_t *src,
int linelen, int height) { int linelen, int height)
{
int i, j, src_stride = FFALIGN(linelen, 4); int i, j, src_stride = FFALIGN(linelen, 4);
uint8_t *dst = f->data[0]; uint8_t *dst = f->data[0];
dst += (height - 1) * f->linesize[0]; dst += (height - 1) * f->linesize[0];
...@@ -63,7 +65,8 @@ static void add_frame_default(AVFrame *f, const uint8_t *src, ...@@ -63,7 +65,8 @@ static void add_frame_default(AVFrame *f, const uint8_t *src,
} }
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt) { AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data; const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size; int buf_size = avpkt->size;
CamStudioContext *c = avctx->priv_data; CamStudioContext *c = avctx->priv_data;
...@@ -125,7 +128,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, ...@@ -125,7 +128,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
return buf_size; return buf_size;
} }
static av_cold int decode_init(AVCodecContext *avctx) { static av_cold int decode_init(AVCodecContext *avctx)
{
CamStudioContext *c = avctx->priv_data; CamStudioContext *c = avctx->priv_data;
int stride; int stride;
switch (avctx->bits_per_coded_sample) { switch (avctx->bits_per_coded_sample) {
...@@ -154,7 +158,8 @@ static av_cold int decode_init(AVCodecContext *avctx) { ...@@ -154,7 +158,8 @@ static av_cold int decode_init(AVCodecContext *avctx) {
return 0; return 0;
} }
static av_cold int decode_end(AVCodecContext *avctx) { static av_cold int decode_end(AVCodecContext *avctx)
{
CamStudioContext *c = avctx->priv_data; CamStudioContext *c = avctx->priv_data;
av_freep(&c->decomp_buf); av_freep(&c->decomp_buf);
av_frame_free(&c->pic); av_frame_free(&c->pic);
......
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