Increase VIDEO_PICTURE_QUEUE_SIZE to 2.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Mar 2010 15:45:46 +0000 (15:45 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Mar 2010 15:45:46 +0000 (15:45 +0000)
this allows more asynchronous decoding and display thus improving
video smoothness.
It also seems to improve absolute video decoding speed for some reason

Originally committed as revision 22434 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index fb99d9a..89650e4 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -87,7 +87,7 @@ typedef struct PacketQueue {
     SDL_cond *cond;
 } PacketQueue;
 
-#define VIDEO_PICTURE_QUEUE_SIZE 1
+#define VIDEO_PICTURE_QUEUE_SIZE 2
 #define SUBPICTURE_QUEUE_SIZE 4
 
 typedef struct VideoPicture {