mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/h264_sei/ff_h264_decode_sei: fix error codes for insufficient data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
37ecd67b5e
commit
800ffa1fc0
@ -249,14 +249,14 @@ int ff_h264_decode_sei(H264Context *h){
|
||||
type=0;
|
||||
do{
|
||||
if (get_bits_left(&h->gb) < 8)
|
||||
return -1;
|
||||
return AVERROR_INVALIDDATA;
|
||||
type+= show_bits(&h->gb, 8);
|
||||
}while(get_bits(&h->gb, 8) == 255);
|
||||
|
||||
size=0;
|
||||
do{
|
||||
if (get_bits_left(&h->gb) < 8)
|
||||
return -1;
|
||||
return AVERROR_INVALIDDATA;
|
||||
size+= show_bits(&h->gb, 8);
|
||||
}while(get_bits(&h->gb, 8) == 255);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user