[FFmpeg-trac] #3281(avcodec:new): ffvhuff -context 1 outputs garbled video

FFmpeg trac at avcodec.org
Wed Jan 8 06:01:40 CET 2014

#3281: ffvhuff -context 1 outputs garbled video
             Reporter:  qyot27   |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  git-master
             Keywords:  ffvhuff  |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
 Summary of the bug:
 Since I noticed the recent commits extending ffvhuff to experimentally
 support 4:4:4, et al., I rebuilt FFmpeg from git to test it out.

 However, it seems that as part of that patchset, -context 1 broke, as
 later on I was actually just converting 4:2:0 like I usually do and I
 ended up finding out that the output was corrupted badly.  To its credit,
 -context 1 also seemed to corrupt 4:4:4 when I tested it there too, but
 not as badly (4:4:4 output was still in the proper colors as the source
 video, although there were artifacts; 4:2:0 was awash in rainbow-colored
 strobing ''and'' artifacts).

 If I don't use -context 1 at all, then the problem doesn't occur.  But
 then it doesn't enable the adaptive huffman tables.

 How to reproduce:
 ffmpeg -i input -vcodec ffvhuff -context 1 output.avi

 ffmpeg -i input -vcodec ffvhuff output.avi

Ticket URL: <https://trac.ffmpeg.org/ticket/3281>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list