Guest User

Untitled

a guest
Sep 4th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1.  
  2. diff --git a/ffplay.c b/ffplay.c
  3. index 2cfdf26ee9..1a0474e20d 100644
  4. --- a/ffplay.c
  5. +++ b/ffplay.c
  6. @@ -2817,6 +2817,7 @@ static int is_realtime(AVFormatContext *s)
  7.          return 1;
  8.      return 0;
  9.  }
  10. +#define MIN_AUDIOQ_SIZE (20 * 16 * 1024)
  11.  
  12.  /* this thread gets the stream from the disk or the network */
  13.  static int read_thread(void *arg)
  14. @@ -3066,7 +3067,7 @@ static int read_thread(void *arg)
  15.          /* if the queue are full, no need to read more */
  16.          if (infinite_buffer<1 &&
  17.                (is->audioq.size + is->videoq.size + is->subtitleq.size > MAX_QUEUE_SIZE
  18. -            || (   (is->audioq   .nb_packets > MIN_FRAMES || is->audio_stream < 0 || is->audioq.abort_request)
  19. +            || (   (is->audioq   .nb_packets > MIN_AUDIOQ_SIZE || is->audio_stream < 0 || is->audioq.abort_request)
  20.                  && (is->videoq   .nb_packets > MIN_FRAMES || is->video_stream < 0 || is->videoq.abort_request
  21.                      || (is->video_st->disposition & AV_DISPOSITION_ATTACHED_PIC))
  22.                  && (is->subtitleq.nb_packets > MIN_FRAMES || is->subtitle_stream < 0 || is->subtitleq.abort_request)))) {
Add Comment
Please, Sign In to add comment