diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-10-06 08:01:16 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-07 23:53:13 +0300 |
commit | 047a6d396f6919c469e35d6ef75bd9cae5a87523 (patch) | |
tree | ea34a8bed5c1f874f971006287281646c2d4bb2b /libavcodec/flac_parser.c | |
parent | e5e5be4c7f607d3c04396d71f511c6b81a1cd997 (diff) |
avcodec/flac_parser: Fix number of buffered headers
Only decrement the number of buffered headers if a header has actually
been freed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/flac_parser.c')
-rw-r--r-- | libavcodec/flac_parser.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index 197f234e61..8c61f3a88c 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -562,7 +562,6 @@ static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx, for (curr = best_child->next; curr; curr = curr->next) curr->offset -= best_child->offset; - fpc->nb_headers_buffered--; best_child->offset = 0; fpc->headers = best_child; if (fpc->nb_headers_buffered >= FLAC_MIN_HEADERS) { |