diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-02 23:34:37 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-05 13:37:32 +0100 |
commit | 0cdbc4d39394965bd8712395b19160da8f3fe144 (patch) | |
tree | 1ad110928ffb9d099bc76cea885cbb03eee1d92b /libavcodec/ljpegenc.c | |
parent | 72c0b8f724a71d2784aecad0e5221e7ab6206371 (diff) | |
download | ffmpeg-0cdbc4d39394965bd8712395b19160da8f3fe144.tar.gz |
ljpegenc: rename the encoding function.
The new name is more consistent with the rest of Libav.
Diffstat (limited to 'libavcodec/ljpegenc.c')
-rw-r--r-- | libavcodec/ljpegenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c index 13d52f5581..4bb6bbf7be 100644 --- a/libavcodec/ljpegenc.c +++ b/libavcodec/ljpegenc.c @@ -57,8 +57,8 @@ typedef struct LJpegEncContext { uint16_t (*scratch)[4]; } LJpegEncContext; -static int encode_picture_lossless(AVCodecContext *avctx, AVPacket *pkt, - const AVFrame *pict, int *got_packet) +static int ljpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt, + const AVFrame *pict, int *got_packet) { LJpegEncContext *s = avctx->priv_data; PutBitContext pb; @@ -289,7 +289,7 @@ AVCodec ff_ljpeg_encoder = { .id = AV_CODEC_ID_LJPEG, .priv_data_size = sizeof(LJpegEncContext), .init = ljpeg_encode_init, - .encode2 = encode_picture_lossless, + .encode2 = ljpeg_encode_frame, .close = ljpeg_encode_close, .pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, |