[FFmpeg-cvslog] avcodec/dnxhd_parser: Optimize insufficient buf size case
Michael Niedermayer
git at videolan.org
Thu Jul 18 00:19:58 EEST 2019
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Jul 6 09:52:50 2019 +0200| [827faa18cfd08eed49ffff9129ef4378b8ccf5a5] | committer: Michael Niedermayer
avcodec/dnxhd_parser: Optimize insufficient buf size case
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=827faa18cfd08eed49ffff9129ef4378b8ccf5a5
---
libavcodec/dnxhd_parser.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/dnxhd_parser.c b/libavcodec/dnxhd_parser.c
index f657af8f41..31a3158fea 100644
--- 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;
}
}
}
More information about the ffmpeg-cvslog
mailing list