Skip to content

Commit

Permalink
lavf: remove unused MythTV addition build_index
Browse files Browse the repository at this point in the history
originally from 3539d58

also fixup comment spacing
  • Loading branch information
ulmus-scott authored and bennettpeter committed Jul 1, 2022
1 parent e462439 commit e9f9628
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions mythtv/external/FFmpeg/libavformat/avformat.h
Expand Up @@ -1365,8 +1365,6 @@ typedef struct AVFormatContext {
int max_delay;

/* Myth addons */
int build_index;

/* mpeg-ts support */
void (*streams_changed)(void*);
void *stream_change_data;
Expand Down
3 changes: 1 addition & 2 deletions mythtv/external/FFmpeg/libavformat/utils.c
Expand Up @@ -581,7 +581,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
}

s->build_index = 1;
s->duration = s->start_time = AV_NOPTS_VALUE;

/* Allocate private data. */
Expand Down Expand Up @@ -3834,7 +3833,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (i == ic->nb_streams) {
analyzed_all_streams = 1;
/* NOTE: If the format has no header, then we need to read some
* packets to get most of the streams, so we cannot stop here. */
* packets to get most of the streams, so we cannot stop here. */
/* There are MythTV changes here */
if (!(ic->ctx_flags & AVFMTCTX_NOHEADER) ||
(read_size >= MAX_READ_SIZE || read_packets >= MAX_FRAMES) ||
Expand Down

0 comments on commit e9f9628

Please sign in to comment.