Commit e5367f9d authored by mru's avatar mru

use av_freep() in free_vlc() and failed init_vlc()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9474 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 92083072
...@@ -261,7 +261,7 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, ...@@ -261,7 +261,7 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
codes, codes_wrap, codes_size, codes, codes_wrap, codes_size,
symbols, symbols_wrap, symbols_size, symbols, symbols_wrap, symbols_size,
0, 0, flags) < 0) { 0, 0, flags) < 0) {
av_free(vlc->table); av_freep(&vlc->table);
return -1; return -1;
} }
return 0; return 0;
...@@ -270,6 +270,6 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, ...@@ -270,6 +270,6 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
void free_vlc(VLC *vlc) void free_vlc(VLC *vlc)
{ {
av_free(vlc->table); av_freep(&vlc->table);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment