diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-30 18:00:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-30 20:27:07 +0200 |
commit | cda5d89defaf65eccd890488675dc3d6e7484d27 (patch) | |
tree | 96e44b0d1098701f13f61e071b64f8e09ae4a3a3 /libavcodec | |
parent | 0eb4a428122b74d3ddfa9c48015bf73be433a2cf (diff) | |
download | ffmpeg-cda5d89defaf65eccd890488675dc3d6e7484d27.tar.gz |
avcodec/bitstream_filter: Use av_bitstream_filter_next() instead of direct access in av_bitstream_filter_init()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/bitstream_filter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c index 751b90d1d5..3275326db4 100644 --- a/libavcodec/bitstream_filter.c +++ b/libavcodec/bitstream_filter.c @@ -43,9 +43,9 @@ void av_register_bitstream_filter(AVBitStreamFilter *bsf) AVBitStreamFilterContext *av_bitstream_filter_init(const char *name) { - AVBitStreamFilter *bsf = first_bitstream_filter; + AVBitStreamFilter *bsf = NULL; - while (bsf) { + while (bsf = av_bitstream_filter_next(bsf)) { if (!strcmp(name, bsf->name)) { AVBitStreamFilterContext *bsfc = av_mallocz(sizeof(AVBitStreamFilterContext)); @@ -54,7 +54,6 @@ AVBitStreamFilterContext *av_bitstream_filter_init(const char *name) bsf->priv_data_size ? av_mallocz(bsf->priv_data_size) : NULL; return bsfc; } - bsf = bsf->next; } return NULL; } |