You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
Merge commit 'a1ba1f20b350cb89e645f17bdb237d027170db33'
* commit 'a1ba1f20b350cb89e645f17bdb237d027170db33': mjpegenc: cosmetics, reformat jpeg_put_comments() Conflicts: libavcodec/mjpegenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -164,8 +164,7 @@ static void jpeg_put_comments(AVCodecContext *avctx, PutBitContext *p)
|
|||||||
int size;
|
int size;
|
||||||
uint8_t *ptr;
|
uint8_t *ptr;
|
||||||
|
|
||||||
if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0)
|
if (avctx->sample_aspect_ratio.num > 0 && avctx->sample_aspect_ratio.den > 0) {
|
||||||
{
|
|
||||||
/* JFIF header */
|
/* JFIF header */
|
||||||
put_marker(p, APP0);
|
put_marker(p, APP0);
|
||||||
put_bits(p, 16, 16);
|
put_bits(p, 16, 16);
|
||||||
@ -189,9 +188,9 @@ static void jpeg_put_comments(AVCodecContext *avctx, PutBitContext *p)
|
|||||||
AV_WB16(ptr, size);
|
AV_WB16(ptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if( avctx->pix_fmt == AV_PIX_FMT_YUV420P
|
if (avctx->pix_fmt == AV_PIX_FMT_YUV420P ||
|
||||||
||avctx->pix_fmt == AV_PIX_FMT_YUV422P
|
avctx->pix_fmt == AV_PIX_FMT_YUV422P ||
|
||||||
||avctx->pix_fmt == AV_PIX_FMT_YUV444P){
|
avctx->pix_fmt == AV_PIX_FMT_YUV444P) {
|
||||||
put_marker(p, COM);
|
put_marker(p, COM);
|
||||||
flush_put_bits(p);
|
flush_put_bits(p);
|
||||||
ptr = put_bits_ptr(p);
|
ptr = put_bits_ptr(p);
|
||||||
|
Reference in New Issue
Block a user