mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
cosmetics: K&R coding style, prettyprinting
Originally committed as revision 20115 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a8b95021e5
commit
37a4269d70
@ -31,7 +31,8 @@ typedef struct SgiContext {
|
|||||||
AVFrame picture;
|
AVFrame picture;
|
||||||
} SgiContext;
|
} SgiContext;
|
||||||
|
|
||||||
static av_cold int encode_init(AVCodecContext *avctx){
|
static av_cold int encode_init(AVCodecContext *avctx)
|
||||||
|
{
|
||||||
SgiContext *s = avctx->priv_data;
|
SgiContext *s = avctx->priv_data;
|
||||||
|
|
||||||
avcodec_get_frame_defaults(&s->picture);
|
avcodec_get_frame_defaults(&s->picture);
|
||||||
@ -41,7 +42,8 @@ static av_cold int encode_init(AVCodecContext *avctx){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
|
static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
|
||||||
int buf_size, void *data) {
|
int buf_size, void *data)
|
||||||
|
{
|
||||||
SgiContext *s = avctx->priv_data;
|
SgiContext *s = avctx->priv_data;
|
||||||
AVFrame * const p = &s->picture;
|
AVFrame * const p = &s->picture;
|
||||||
uint8_t *offsettab, *lengthtab, *in_buf, *encode_buf;
|
uint8_t *offsettab, *lengthtab, *in_buf, *encode_buf;
|
||||||
@ -168,4 +170,3 @@ AVCodec sgi_encoder = {
|
|||||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_GRAY8, PIX_FMT_NONE},
|
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_GRAY8, PIX_FMT_NONE},
|
||||||
.long_name= NULL_IF_CONFIG_SMALL("SGI image"),
|
.long_name= NULL_IF_CONFIG_SMALL("SGI image"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user