diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-05 15:45:42 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-15 10:31:55 +0200 |
commit | e930b834a928546f9cbc937f6633709053448232 (patch) | |
tree | b6490fcbb8d5dbc7e8d2f1142754e4268071e8ae /libavformat/internal.h | |
parent | 70433abf7fbc978b5fa0d06951d61ac18ac335f8 (diff) | |
download | ffmpeg-e930b834a928546f9cbc937f6633709053448232.tar.gz |
lavf: use AV_CODEC_PROP_FIELDS where appropriate
H.264 and mpeg12 parsers need to be adjusted at the same time to stop
using the value of AVCodecContext.ticks_per_frame, because it is not set
correctly unless the codec has been opened. Previously this would result
in both the parser and lavf seeing the same incorrect value, which would
cancel out.
Updating lavf and not the parsers would result in correct value in lavf,
but the wrong one in parsers, which would break some tests.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 82a79d7488..9fc980601f 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -23,6 +23,7 @@ #include <stdint.h> +#include "libavcodec/codec_desc.h" #include "libavcodec/packet_internal.h" #include "avformat.h" @@ -408,6 +409,8 @@ typedef struct FFStream { */ int64_t first_dts; int64_t cur_dts; + + const AVCodecDescriptor *codec_desc; } FFStream; static av_always_inline FFStream *ffstream(AVStream *st) |