summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c
index e8d8b11d8a..0a347f3ba8 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -189,6 +189,7 @@ float sub_last_pts = -303;
#endif
int auto_expand=1;
+int encode_duplicates=1;
// infos are empty by default
char *info_name=NULL;
@@ -1312,7 +1313,8 @@ if(skip_flag<0){
if(file_format != DEMUXER_TYPE_TV && !verbose) printf(MSGTR_DuplicateFrames,-skip_flag);
while(skip_flag<0){
duplicatedframes++;
- muxer_write_chunk(mux_v,0,0);
+ if (!encode_duplicates || vf_next_control(sh_video->vfilter, VFCTRL_DUPLICATE_FRAME, 0) != CONTROL_TRUE)
+ muxer_write_chunk(mux_v,0,0);
++skip_flag;
}
} else