Commit d7ccfe58 authored by Nicolas George's avatar Nicolas George

lavc/libvorbisdec: do not return empty frames.

Some parts of the code have been known to react badly to
empty frames; they should not, but there is no need to
take risks.
parent d5b58f67
......@@ -171,7 +171,7 @@ static int oggvorbis_decode_frame(AVCodecContext *avccontext, void *data,
}
frame->nb_samples = total_samples;
*got_frame_ptr = 1;
*got_frame_ptr = total_samples > 0;
return avpkt->size;
}
......
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