aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-11-24 09:49:37 +0100
committerAnton Khirnov <anton@khirnov.net>2023-12-14 08:11:05 +0100
commitc9f38210fc498ada2605a1faac8aceb3d76e69c6 (patch)
tree1fa43e0a0848a84a4778788bdb1110fb6c80c74f /fftools/ffmpeg.h
parent5475f665f60e7a297d4e650c76678af3225304b1 (diff)
downloadffmpeg-c9f38210fc498ada2605a1faac8aceb3d76e69c6.tar.gz
fftools/ffmpeg: merge DemuxPktData into FrameData
This way we can propagate arbitrary data from the demuxer all the way into the muxer, using a single struct.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index ba82b7490d..aafb35538e 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -115,12 +115,6 @@ typedef struct {
} AudioChannelMap;
#endif
-typedef struct DemuxPktData {
- // estimated dts in AV_TIME_BASE_Q,
- // to be used when real dts is missing
- int64_t dts_est;
-} DemuxPktData;
-
typedef struct OptionsContext {
OptionGroup *g;
@@ -622,6 +616,10 @@ typedef struct OutputFile {
// optionally attached as opaque_ref to decoded AVFrames
typedef struct FrameData {
+ // demuxer-estimated dts in AV_TIME_BASE_Q,
+ // to be used when real dts is missing
+ int64_t dts_est;
+
// properties that come from the decoder
struct {
uint64_t frame_num;
@@ -723,6 +721,9 @@ FrameData *frame_data(AVFrame *frame);
const FrameData *frame_data_c(AVFrame *frame);
+FrameData *packet_data (AVPacket *pkt);
+const FrameData *packet_data_c(AVPacket *pkt);
+
/**
* Set up fallback filtering parameters from a decoder context. They will only
* be used if no frames are ever sent on this input, otherwise the actual