repositories
/
deb_ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git]
/
ffmpeg
/
libavcodec
/
iirfilter.c
diff --git
a/ffmpeg/libavcodec/iirfilter.c
b/ffmpeg/libavcodec/iirfilter.c
index a2d9d112508f36553bab193c35314b7be2a2ddb6..cb5871cb29ef1c0549e3a38a8e5f7029f72dc13a 100644
(file)
--- a/
ffmpeg/libavcodec/iirfilter.c
+++ b/
ffmpeg/libavcodec/iirfilter.c
@@
-196,7
+196,7
@@
av_cold struct FFIIRFilterCoeffs* ff_iir_filter_init_coeffs(void *avc,
return c;
init_fail:
return c;
init_fail:
- ff_iir_filter_free_coeffs
(
c);
+ ff_iir_filter_free_coeffs
p(&
c);
return NULL;
}
return NULL;
}
@@
-299,18
+299,19
@@
void ff_iir_filter_flt(const struct FFIIRFilterCoeffs *c,
}
}
}
}
-av_cold void ff_iir_filter_free_state
(struct FFIIRFilterState
*state)
+av_cold void ff_iir_filter_free_state
p(struct FFIIRFilterState *
*state)
{
{
- av_free(state);
+ av_free
p
(state);
}
}
-av_cold void ff_iir_filter_free_coeffs
(struct FFIIRFilterCoeffs *coeffs
)
+av_cold void ff_iir_filter_free_coeffs
p(struct FFIIRFilterCoeffs **coeffsp
)
{
{
+ struct FFIIRFilterCoeffs *coeffs = *coeffsp;
if(coeffs){
if(coeffs){
- av_free
(
coeffs->cx);
- av_free
(
coeffs->cy);
+ av_free
p(&
coeffs->cx);
+ av_free
p(&
coeffs->cy);
}
}
- av_free
(coeffs
);
+ av_free
p(coeffsp
);
}
void ff_iir_filter_init(FFIIRFilterContext *f) {
}
void ff_iir_filter_init(FFIIRFilterContext *f) {
@@
-347,8
+348,8
@@
int main(void)
for (i = 0; i < SIZE; i++)
printf("%6d %6d\n", x[i], y[i]);
for (i = 0; i < SIZE; i++)
printf("%6d %6d\n", x[i], y[i]);
- ff_iir_filter_free_coeffs
(
fcoeffs);
- ff_iir_filter_free_state
(
fstate);
+ ff_iir_filter_free_coeffs
p(&
fcoeffs);
+ ff_iir_filter_free_state
p(&
fstate);
return 0;
}
#endif /* TEST */
return 0;
}
#endif /* TEST */