Merge commit '5549f693d2' into release/2.4
* commit '5549f693d2': mjpegenc: Fix JFIF header byte ordering Conflicts: libavcodec/mjpegenc_common.c See:b19313218cMerged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
dcc8009249
1 changed files with 4 additions and 1 deletions
|
|
@ -121,7 +121,10 @@ static void jpeg_put_comments(AVCodecContext *avctx, PutBitContext *p)
|
|||
put_marker(p, APP0);
|
||||
put_bits(p, 16, 16);
|
||||
avpriv_put_string(p, "JFIF", 1); /* this puts the trailing zero-byte too */
|
||||
put_bits(p, 16, 0x0102); /* v 1.02 */
|
||||
/* The most significant byte is used for major revisions, the least
|
||||
* significant byte for minor revisions. Version 1.02 is the current
|
||||
* released revision. */
|
||||
put_bits(p, 16, 0x0102);
|
||||
put_bits(p, 8, 0); /* units type: 0 - aspect ratio */
|
||||
put_bits(p, 16, avctx->sample_aspect_ratio.num);
|
||||
put_bits(p, 16, avctx->sample_aspect_ratio.den);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue