[FFmpeg-devel] [PATCH] avformat/yuv4mpegenc: simplify writing the header

Michael Niedermayer michael at niedermayer.cc
Thu Sep 10 01:54:15 EEST 2020


On Thu, Sep 03, 2020 at 03:55:04PM -0300, James Almer wrote:
> Actually write it in yuv4_write_header() instead of with the first
> packet.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavformat/yuv4mpegenc.c | 35 ++++++++++++++---------------------
>  1 file changed, 14 insertions(+), 21 deletions(-)

This changes the written header
for example:
./ffmpeg  -i ~/tickets/2190/clip.yuv -bitexact testbad.y4m

YUV4MPEG2 W720 H480 F30000:1001 Ip A10:11 C411 XYSCSS=411
vs
YUV4MPEG2 W720 H480 F30000:1001 Ib A10:11 C411 XYSCSS=411


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200910/3182a769/attachment.sig>


More information about the ffmpeg-devel mailing list