[FFmpeg-devel] [PATCH] avcodec/mjpegenc_common: always store JFIF, idependent of the aspect ratio
Michael Niedermayer
michaelni at gmx.at
Wed Jul 16 14:23:23 CEST 2014
On Wed, Jul 16, 2014 at 08:18:58AM +0200, Reimar Döffinger wrote:
>
>
> On 15.07.2014, at 16:31, Michael Niedermayer <michaelni at gmx.at> wrote:
>
> > Found-by: kriegero1
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
>
> Nit: iNdependent in commit message.
fixed
>
> > + /* JFIF header */
> > + 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 */
> > + put_bits(p, 8, 0); /* units type: 0 - aspect ratio */
>
> Would an empty JFIF header possibly help as well? (I think it's a collection of tags or am I wrong and it requires an aspect entry?)
> I don't like specifying a 1:1 aspect explicitly when we actually don't know it.
from what i see in the spec this isnt optional, but i read just
a small part of the spec
also the spec isnt big ...
> Also, might the diff be more readable without reindenting?
probably, ill do it in case this is commited, one concern is still
if we need to special case this for mjpeg so it gets no jfif
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140716/6608a80d/attachment.asc>
More information about the ffmpeg-devel
mailing list