sdl: add AVFMT_VARIABLE_FPS and AVFMT_NOTIMESTAMPS.
authorNicolas George <nicolas.george@normalesup.org>
Sat, 9 Jun 2012 09:28:44 +0000 (11:28 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Sun, 10 Jun 2012 07:42:31 +0000 (09:42 +0200)
It allows vsync to be automatically set to passthrough.

libavdevice/sdl.c

index 654d54b..e4609a2 100644 (file)
@@ -214,6 +214,6 @@ AVOutputFormat ff_sdl_muxer = {
     .write_header   = sdl_write_header,
     .write_packet   = sdl_write_packet,
     .write_trailer  = sdl_write_trailer,
-    .flags          = AVFMT_NOFILE,
+    .flags          = AVFMT_NOFILE | AVFMT_VARIABLE_FPS | AVFMT_NOTIMESTAMPS,
     .priv_class     = &sdl_class,
 };