]> git.sesse.net Git - vlc/commit
Fix wrong initialization of 'mp2v' encoder profile
authorRoman Pen <r.peniaev@gmail.com>
Sat, 28 Feb 2009 00:39:17 +0000 (01:39 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 28 Feb 2009 10:54:29 +0000 (12:54 +0200)
commit9be39f72dbafbeb94f6f1d3c1d2e46be5d2b3c93
tree6894ba0bcfe2b07235c449b5ff79de1e15cf0ea7
parente5eff32daab554104de435121136be9ce468b2c8
Fix wrong initialization of 'mp2v' encoder profile

According to ffmpeg/libavcodec/mpeg12enc.c:155 (rev:2fd06be07311)
profile and level must be inited at the same time, so, -1 will be
returned for mp2v with width > 720 or height > 576. But, if we leave
this fields blank (i.e. FF_PROFILE_UNKNOWN and FF_LEVEL_UNKNOWN) avcodec
will init them correctly.

This partially reverts commit b1b72b632aed8ccf9624093214efe1329093e6f8.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/codec/avcodec/encoder.c