diff libmpcodecs/vd_ffmpeg.c @ 34909:40a9417d9ee8

Fix swapped condition in previous commit.
author reimar
date Tue, 12 Jun 2012 17:55:52 +0000
parents 1b28f529eac5
children c410ef9752a0
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Tue Jun 12 17:49:49 2012 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Tue Jun 12 17:55:52 2012 +0000
@@ -884,7 +884,7 @@
 
     if(!got_picture) {
 	if (avctx->codec->id == CODEC_ID_H264 &&
-	    skip_frame > AVDISCARD_DEFAULT)
+	    skip_frame <= AVDISCARD_DEFAULT)
 	    return &mpi_no_picture; // H.264 first field only
 	else
 	    return NULL;    // skipped image