mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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.
This commit is contained in:
parent
d5b58f678d
commit
d7ccfe58e3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user