git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1707dbd
)
avcodec/dnxhd_parser: Optimize insufficient buf size case
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 Jul 2019 07:52:50 +0000
(09:52 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 17 Jul 2019 21:18:50 +0000
(23:18 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dnxhd_parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/dnxhd_parser.c
b/libavcodec/dnxhd_parser.c
index
f657af8
..
31a3158
100644
(file)
--- a/
libavcodec/dnxhd_parser.c
+++ b/
libavcodec/dnxhd_parser.c
@@
-88,6
+88,10
@@
static int dnxhd_find_frame_end(DNXHDParserContext *dctx,
return remaining;
} else {
dctx->remaining -= buf_size;
+ // Update variables for correctness, they are currently not used beyond here
+ state = -1;
+ dctx->cur_byte += buf_size - i;
+ break;
}
}
}