Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ffplay.c b/ffplay.c
- index 2cfdf26ee9..1a0474e20d 100644
- --- a/ffplay.c
- +++ b/ffplay.c
- @@ -2817,6 +2817,7 @@ static int is_realtime(AVFormatContext *s)
- return 1;
- return 0;
- }
- +#define MIN_AUDIOQ_SIZE (20 * 16 * 1024)
- /* this thread gets the stream from the disk or the network */
- static int read_thread(void *arg)
- @@ -3066,7 +3067,7 @@ static int read_thread(void *arg)
- /* if the queue are full, no need to read more */
- if (infinite_buffer<1 &&
- (is->audioq.size + is->videoq.size + is->subtitleq.size > MAX_QUEUE_SIZE
- - || ( (is->audioq .nb_packets > MIN_FRAMES || is->audio_stream < 0 || is->audioq.abort_request)
- + || ( (is->audioq .nb_packets > MIN_AUDIOQ_SIZE || is->audio_stream < 0 || is->audioq.abort_request)
- && (is->videoq .nb_packets > MIN_FRAMES || is->video_stream < 0 || is->videoq.abort_request
- || (is->video_st->disposition & AV_DISPOSITION_ATTACHED_PIC))
- && (is->subtitleq.nb_packets > MIN_FRAMES || is->subtitle_stream < 0 || is->subtitleq.abort_request)))) {
Add Comment
Please, Sign In to add comment