]> git.sesse.net Git - ffmpeg/commit
avcodec/cuvid: Always check for internal errors during parsing
authorPhilip Langdale <philipl@overt.org>
Sat, 10 Sep 2016 19:51:01 +0000 (12:51 -0700)
committerTimo Rothenpieler <timo@rothenpieler.org>
Sat, 10 Sep 2016 20:27:24 +0000 (22:27 +0200)
commit4029f05c8b0943a5446f254142d5e2bfedb50a0d
tree69d6648e346800da2995dcd6aa85d9beb155f874
parentb257266ee8b3f6db5d6135ba7c8fbcd3fba5c9dc
avcodec/cuvid: Always check for internal errors during parsing

The cuvid parser is basically undocumented, and although you'd
think that a failed callback would result in the overall parse
call returning an error, that is not true.

So, we end up silently trying to keep going as if nothing is wrong,
which doesn't achieve anything.

Solution: check the internal error flag every time.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
libavcodec/cuvid.c