mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
use av_freep() in free_vlc() and failed init_vlc()
Originally committed as revision 9474 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ed77a6c909
commit
85d366fd02
@ -261,7 +261,7 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
|
||||
codes, codes_wrap, codes_size,
|
||||
symbols, symbols_wrap, symbols_size,
|
||||
0, 0, flags) < 0) {
|
||||
av_free(vlc->table);
|
||||
av_freep(&vlc->table);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
@ -270,6 +270,6 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
|
||||
|
||||
void free_vlc(VLC *vlc)
|
||||
{
|
||||
av_free(vlc->table);
|
||||
av_freep(&vlc->table);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user