Commit df0bb26a authored by Anton Khirnov's avatar Anton Khirnov

lavf: remove disabled FF_API_TIMESTAMP cruft

parent 3bbfd302
...@@ -809,13 +809,6 @@ typedef struct AVFormatContext { ...@@ -809,13 +809,6 @@ typedef struct AVFormatContext {
char filename[1024]; /**< input or output filename */ char filename[1024]; /**< input or output filename */
/* stream info */ /* stream info */
#if FF_API_TIMESTAMP
/**
* @deprecated use 'creation_time' metadata tag instead
*/
attribute_deprecated int64_t timestamp;
#endif
int ctx_flags; /**< Format-specific flags, see AVFMTCTX_xx */ int ctx_flags; /**< Format-specific flags, see AVFMTCTX_xx */
#if FF_API_REORDER_PRIVATE #if FF_API_REORDER_PRIVATE
/* private data for pts handling (do not modify directly). */ /* private data for pts handling (do not modify directly). */
......
...@@ -338,11 +338,6 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s) ...@@ -338,11 +338,6 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s)
c->frames = 0; c->frames = 0;
c->has_audio = 0; c->has_audio = 0;
c->has_video = 0; c->has_video = 0;
#if FF_API_TIMESTAMP
if (s->timestamp)
c->start_time = s->timestamp;
else
#endif
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) if (t = av_dict_get(s->metadata, "creation_time", NULL, 0))
c->start_time = ff_iso8601_to_unix_time(t->value); c->start_time = ff_iso8601_to_unix_time(t->value);
......
...@@ -399,11 +399,6 @@ static int gxf_write_umf_material_description(AVFormatContext *s) ...@@ -399,11 +399,6 @@ static int gxf_write_umf_material_description(AVFormatContext *s)
AVDictionaryEntry *t; AVDictionaryEntry *t;
uint32_t timecode; uint32_t timecode;
#if FF_API_TIMESTAMP
if (s->timestamp)
timestamp = s->timestamp;
else
#endif
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) if (t = av_dict_get(s->metadata, "creation_time", NULL, 0))
timestamp = ff_iso8601_to_unix_time(t->value); timestamp = ff_iso8601_to_unix_time(t->value);
......
...@@ -2807,11 +2807,6 @@ static int mov_write_header(AVFormatContext *s) ...@@ -2807,11 +2807,6 @@ static int mov_write_header(AVFormatContext *s)
if (!(mov->flags & FF_MOV_FLAG_EMPTY_MOOV)) if (!(mov->flags & FF_MOV_FLAG_EMPTY_MOOV))
mov_write_mdat_tag(pb, mov); mov_write_mdat_tag(pb, mov);
#if FF_API_TIMESTAMP
if (s->timestamp)
mov->time = s->timestamp;
else
#endif
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) if (t = av_dict_get(s->metadata, "creation_time", NULL, 0))
mov->time = ff_iso8601_to_unix_time(t->value); mov->time = ff_iso8601_to_unix_time(t->value);
if (mov->time) if (mov->time)
......
...@@ -1519,11 +1519,6 @@ static int mxf_write_header(AVFormatContext *s) ...@@ -1519,11 +1519,6 @@ static int mxf_write_header(AVFormatContext *s)
sc->order = AV_RB32(sc->track_essence_element_key+12); sc->order = AV_RB32(sc->track_essence_element_key+12);
} }
#if FF_API_TIMESTAMP
if (s->timestamp)
timestamp = s->timestamp;
else
#endif
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) if (t = av_dict_get(s->metadata, "creation_time", NULL, 0))
timestamp = ff_iso8601_to_unix_time(t->value); timestamp = ff_iso8601_to_unix_time(t->value);
if (timestamp) if (timestamp)
......
...@@ -47,9 +47,6 @@ ...@@ -47,9 +47,6 @@
* Those FF_API_* defines are not part of public API. * Those FF_API_* defines are not part of public API.
* They may change, break or disappear at any time. * They may change, break or disappear at any time.
*/ */
#ifndef FF_API_TIMESTAMP
#define FF_API_TIMESTAMP (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_FILESIZE #ifndef FF_API_FILESIZE
#define FF_API_FILESIZE (LIBAVFORMAT_VERSION_MAJOR < 54) #define FF_API_FILESIZE (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment