[FFmpeg-devel] [PATCH 02/41] avcodec/mjpegenc: Remove nonsense assert

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sun Jan 30 19:07:21 EET 2022


Michael Niedermayer:
> On Sun, Jan 30, 2022 at 07:27:10AM +0100, Andreas Rheinhardt wrote:
>> Writing optimal huffman tables is incompatible with using slices
> 
> Fundamentally, this should not be i think
> 
> CCITT Rec. T.81 says
> 
> "If a table specification for a
> given destination occurs more than once in the compressed image data, each specification shall replace the previous
> specification. The quantization table specification shall not be altered between progressive DCT scans of a given
> component."
> 
> This explicitly mentions quatization tables but not huffman tables so it
> seems allowed that they can be changed 
> 

The intention of the quoted passage was to state a limitation of our
current code, not a limitation of the format.

- Andreas


More information about the ffmpeg-devel mailing list