]> git.sesse.net Git - ffmpeg/commitdiff
ljpegenc: rename the encoding function.
authorAnton Khirnov <anton@khirnov.net>
Mon, 2 Dec 2013 22:34:37 +0000 (23:34 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 5 Dec 2013 12:37:32 +0000 (13:37 +0100)
The new name is more consistent with the rest of Libav.

libavcodec/ljpegenc.c

index 13d52f5581039f6b94e204f4219836dacec78097..4bb6bbf7beb20b2b5c642d4cc1d33ab79c8c0c48 100644 (file)
@@ -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,