Merge commit '0cdbc4d39394965bd8712395b19160da8f3fe144'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Dec 2013 12:38:17 +0000 (13:38 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Dec 2013 12:38:30 +0000 (13:38 +0100)
* commit '0cdbc4d39394965bd8712395b19160da8f3fe144':
  ljpegenc: rename the encoding function.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/ljpegenc.c

index 514d49315f0d989a4a444ee1ee61a9fdb071d806,4bb6bbf7beb20b2b5c642d4cc1d33ab79c8c0c48..e697b18e7ea6fee5797e63c111fc8417e901cc97
@@@ -304,11 -289,14 +304,11 @@@ 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,
 -                                                    AV_PIX_FMT_YUVJ444P,
 -                                                    AV_PIX_FMT_BGRA,
 -                                                    AV_PIX_FMT_YUV420P,
 -                                                    AV_PIX_FMT_YUV422P,
 -                                                    AV_PIX_FMT_YUVJ444P,
 -                                                    AV_PIX_FMT_NONE },
 +    .pix_fmts       = (const enum AVPixelFormat[]){
 +        AV_PIX_FMT_BGR24   , AV_PIX_FMT_BGRA    , AV_PIX_FMT_BGR0,
 +        AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ422P,
 +        AV_PIX_FMT_YUV420P , AV_PIX_FMT_YUV444P , AV_PIX_FMT_YUV422P,
 +        AV_PIX_FMT_NONE},
  };