Commit 800ffa1f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264_sei/ff_h264_decode_sei: fix error codes for insufficient data

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 37ecd67b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment