You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avconv: use vsync 0 for AVFMT_NOTIMESTAMPS formats.
Prevent avconv from duplicating or dropping frames for formats where it makes even less sense than usual, e.g. image2.
This commit is contained in:
3
avconv.c
3
avconv.c
@@ -1160,7 +1160,8 @@ static void do_video_out(AVFormatContext *s,
|
|||||||
|
|
||||||
format_video_sync = video_sync_method;
|
format_video_sync = video_sync_method;
|
||||||
if (format_video_sync < 0)
|
if (format_video_sync < 0)
|
||||||
format_video_sync = (s->oformat->flags & AVFMT_VARIABLE_FPS) ? 2 : 1;
|
format_video_sync = (s->oformat->flags & AVFMT_NOTIMESTAMPS) ? 0 :
|
||||||
|
(s->oformat->flags & AVFMT_VARIABLE_FPS) ? 2 : 1;
|
||||||
|
|
||||||
if (format_video_sync) {
|
if (format_video_sync) {
|
||||||
double vdelta = sync_ipts - ost->sync_opts;
|
double vdelta = sync_ipts - ost->sync_opts;
|
||||||
|
Reference in New Issue
Block a user