diff options
author | James Almer <jamrial@gmail.com> | 2021-07-14 16:07:49 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-07-17 19:41:45 -0300 |
commit | ef1302db2db67d483fcc37b0bbced61394c3620b (patch) | |
tree | 4ff02f095f606d1913c940708a9ac2d85bde92fb /libavformat/utils.c | |
parent | 305be41374436559a4a5deeb8ca436d13bbfaf75 (diff) | |
download | ffmpeg-ef1302db2db67d483fcc37b0bbced61394c3620b.tar.gz |
avformat/utils: remove AVStreamInternal.orig_codec_id
It's a write only field.
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 998fddf270..0396e42ce7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -482,7 +482,7 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, const AVInputFormat *fmt, AVDictionary **options) { AVFormatContext *s = *ps; - int i, ret = 0; + int ret = 0; AVDictionary *tmp = NULL; ID3v2ExtraMeta *id3v2_extra_meta = NULL; @@ -604,9 +604,6 @@ int avformat_open_input(AVFormatContext **ps, const char *filename, update_stream_avctx(s); - for (i = 0; i < s->nb_streams; i++) - s->streams[i]->internal->orig_codec_id = s->streams[i]->codecpar->codec_id; - if (options) { av_dict_free(options); *options = tmp; @@ -3614,9 +3611,6 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) } } - if (st->codecpar->codec_id != st->internal->orig_codec_id) - st->internal->orig_codec_id = st->codecpar->codec_id; - ret = avcodec_parameters_to_context(avctx, st->codecpar); if (ret < 0) goto find_stream_info_err; |