avformat/avformat: Add AVFMT_AVOID_NEG_TS_DISABLED

And also don't use explicit constants in the movenc test.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2022-01-18 16:17:09 +01:00
parent 92ed6ea3d7
commit f6d14b1297
5 changed files with 6 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ fail:
s->avoid_negative_ts = oc->avoid_negative_ts;
ffformatcontext(s)->avoid_negative_ts_use_pts =
ffformatcontext(oc)->avoid_negative_ts_use_pts;
oc->avoid_negative_ts = 0;
oc->avoid_negative_ts = AVFMT_AVOID_NEG_TS_DISABLED;
return 0;
}