Skip to content

Instantly share code, notes, and snippets.

Created August 20, 2014 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0e26f490ec13d67996fd to your computer and use it in GitHub Desktop.
Save anonymous/0e26f490ec13d67996fd to your computer and use it in GitHub Desktop.
commit e94a44543a96b13aa6a23efce2f0378a5479d530
Author: Rodger Combs <rodger.combs@gmail.com>
Date: Wed Aug 20 15:38:12 2014 -0700
avformat/nullenc: mark null as timestamp-nonstrict
This avoids unnecessary error messages for null output
diff --git a/libavformat/nullenc.c b/libavformat/nullenc.c
index 7c08c39..58b88a1 100644
--- a/libavformat/nullenc.c
+++ b/libavformat/nullenc.c
@@ -32,5 +32,5 @@ AVOutputFormat ff_null_muxer = {
.audio_codec = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE),
.video_codec = AV_CODEC_ID_RAWVIDEO,
.write_packet = null_write_packet,
- .flags = AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS | AVFMT_RAWPICTURE,
+ .flags = AVFMT_TS_NONSTRICT | AVFMT_VARIABLE_FPS | AVFMT_NOFILE | AVFMT_NOTIMESTAMPS | AVFMT_RAWPICTURE,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment