diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2011-01-05 19:38:42 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2011-01-05 19:38:42 +0000 |
commit | 6e16398aa3be09e068cc2d99f850672d58955fca (patch) | |
tree | dba20eb9893b2182645466c39681ab573411cf41 /libavcodec/mpeg12.c | |
parent | ab043374646a1211d65300054db463de577cfb0b (diff) | |
download | ffmpeg-6e16398aa3be09e068cc2d99f850672d58955fca.tar.gz |
Make dc_lum_vlc and dc_chroma_vlc non-static symbols,
this fixed the decoding of version 3 PSX MDEC files.
Originally committed as revision 26230 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 6a331eb3fc..d93474fe29 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -137,6 +137,9 @@ void ff_mpeg1_clean_buffers(MpegEncContext *s){ /******************************************/ /* decoding */ +VLC ff_dc_lum_vlc; +VLC ff_dc_chroma_vlc; + static VLC mv_vlc; static VLC mbincr_vlc; static VLC mb_ptype_vlc; @@ -150,10 +153,10 @@ av_cold void ff_mpeg12_init_vlcs(void) if (!done) { done = 1; - INIT_VLC_STATIC(&dc_lum_vlc, DC_VLC_BITS, 12, + INIT_VLC_STATIC(&ff_dc_lum_vlc, DC_VLC_BITS, 12, ff_mpeg12_vlc_dc_lum_bits, 1, 1, ff_mpeg12_vlc_dc_lum_code, 2, 2, 512); - INIT_VLC_STATIC(&dc_chroma_vlc, DC_VLC_BITS, 12, + INIT_VLC_STATIC(&ff_dc_chroma_vlc, DC_VLC_BITS, 12, ff_mpeg12_vlc_dc_chroma_bits, 1, 1, ff_mpeg12_vlc_dc_chroma_code, 2, 2, 514); INIT_VLC_STATIC(&mv_vlc, MV_VLC_BITS, 17, |