• Chema Gonzalez's avatar
    avformat/yuv4mpegdec: increase header limit · a1a87b7a
    Chema Gonzalez authored
    Allows demuxing UHD F1000000000:33333333 fps yuvj420p files
    
    ffmpeg (at HEAD as of now) is creating this:
    
    ```
    $ ffmpeg -y -i source.265 /tmp/foo.y4m >& /dev/null
    ...
    $ xxd /tmp/raw.y4m |less
    00000000: 5955 5634 4d50 4547 3220 5731 3932 3020  YUV4MPEG2 W1920
    00000010: 4831 3038 3020 4631 3030 3030 3030 3030  H1080 F100000000
    00000020: 303a 3333 3333 3333 3333 2049 7020 4130  0:33333333 Ip A0
    00000030: 3a30 2043 3432 306d 7065 6732 2058 5953  :0 C420mpeg2 XYS
    00000040: 4353 533d 3432 304d 5045 4732 2058 434f  CSS=420MPEG2 XCO
    00000050: 4c4f 5252 414e 4745 3d4c 494d 4954 4544  LORRANGE=LIMITED
    00000060: 0a46 5241 4d45 0a82 8282 8282 8282 8282  .FRAME..........
    ...
    ```
    
    Which cannot be parsed by the same ffmpeg decoder:
    ```
    $ ffmpeg -i /tmp/foo.y4m /tmp/bar.y4m
    ...
    [yuv4mpegpipe @ 0x2b69a40] Header too large.
    /tmp/foo.y4m: Invalid argument
    ```
    
    This is kicking the ball (per 0b1ff326),
    but seems to work.
    a1a87b7a
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...