# HG changeset patch # User rfelker # Date 1111020235 0 # Node ID fe1dfcfcc3bf895f5d5f9b3cb94492cd251d5513 # Parent 01b287731c7b4fba75ccc8c8ae6303235410f361 1000l to me: could break a/v sync and eventually cause buffer exhaustion on soft-telecined input that's ugly diff -r 01b287731c7b -r fe1dfcfcc3bf libmpcodecs/vf_pullup.c --- a/libmpcodecs/vf_pullup.c Wed Mar 16 21:03:14 2005 +0000 +++ b/libmpcodecs/vf_pullup.c Thu Mar 17 00:43:55 2005 +0000 @@ -178,7 +178,14 @@ if (!f) return 0; if (f->length < 2) { pullup_release_frame(f); - return 0; + if (!(mpi->fields & MP_IMGFIELD_REPEAT_FIRST)) + return 0; + f = pullup_get_frame(c); + if (!f) return 0; + if (f->length < 2) { + pullup_release_frame(f); + return 0; + } } }