summaryrefslogtreecommitdiff
path: root/libavcodec/flac_parser.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-10-06 07:01:16 +0200
committerPaul B Mahol <onemda@gmail.com>2019-10-07 22:53:13 +0200
commit047a6d396f6919c469e35d6ef75bd9cae5a87523 (patch)
treeea34a8bed5c1f874f971006287281646c2d4bb2b /libavcodec/flac_parser.c
parente5e5be4c7f607d3c04396d71f511c6b81a1cd997 (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.c1
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) {