[FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

compn tempn at mi.rr.com
Wed Dec 28 16:31:26 EET 2016


On Wed, 28 Dec 2016 08:13:52 +0000
Rostislav Pehlivanov <atomnuker at gmail.com> wrote:

> The only problem I have with the code is that it uses a linked list
> and calls malloc during runtime. Couldn't the linked list be replaced
> with an array allocated during init (it should be okay, I don't think
> resolution is allowed to change during encoding)? That way it'll be

did you test our samples where the resolution changes mid stream?

http://samples.ffmpeg.org/V-codecs/VP6/size_change.nsv
http://samples.ffmpeg.org/MPEG2/resolutionchange.mpg
http://samples.ffmpeg.org/MPEG2/res_change_ffmpeg_aspect.ts

someone should probably organize a small suite of res changing
samples...

i think someone had a bunch of them, maybe michael or stefano?

-compn


More information about the ffmpeg-devel mailing list