| @@ -1313,6 +1313,15 @@ typedef struct AVFrame { · 1312 unmodified lines |
| 1313 | * - decoding: Read by user. | 1313 | * - decoding: Read by user. |
| 1314 | */ | 1314 | */ |
| 1315 | int64_t pkt_duration; | 1315 | int64_t pkt_duration; |
| | 1316 | |
| | 1317 | /** |
| | 1318 | * metadata. |
| | 1319 | * Code outside libavcodec should access this field using: |
| | 1320 | * av_frame_get_metadata(frame) |
| | 1321 | * - encoding: Set by user. |
| | 1322 | * - decoding: Set by libavcodec. |
| | 1323 | */ |
| | 1324 | AVDictionary *metadata; |
| 1316 | } AVFrame; | 1325 | } AVFrame; |
| 1317 | | 1326 | |
| 1318 | /** | 1327 | /** |
| @@ -1325,11 +1334,13 @@ int64_t av_frame_get_pkt_duration (const AVFrame *frame); · 6 unmodified lines |
| 1325 | int64_t av_frame_get_pkt_pos (const AVFrame *frame); | 1334 | int64_t av_frame_get_pkt_pos (const AVFrame *frame); |
| 1326 | int64_t av_frame_get_channel_layout (const AVFrame *frame); | 1335 | int64_t av_frame_get_channel_layout (const AVFrame *frame); |
| 1327 | int av_frame_get_sample_rate (const AVFrame *frame); | 1336 | int av_frame_get_sample_rate (const AVFrame *frame); |
| | 1337 | AVDictionary *av_frame_get_metadata (const AVFrame *frame); |
| 1328 | void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val); | 1338 | void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val); |
| 1329 | void av_frame_set_pkt_duration (AVFrame *frame, int64_t val); | 1339 | void av_frame_set_pkt_duration (AVFrame *frame, int64_t val); |
| 1330 | void av_frame_set_pkt_pos (AVFrame *frame, int64_t val); | 1340 | void av_frame_set_pkt_pos (AVFrame *frame, int64_t val); |
| 1331 | void av_frame_set_channel_layout (AVFrame *frame, int64_t val); | 1341 | void av_frame_set_channel_layout (AVFrame *frame, int64_t val); |
| 1332 | void av_frame_set_sample_rate (AVFrame *frame, int val); | 1342 | void av_frame_set_sample_rate (AVFrame *frame, int val); |
| | 1343 | void av_frame_set_metadata (AVFrame *frame, AVDictionary *val); |
| 1333 | | 1344 | |
| 1334 | struct AVCodecInternal; | 1345 | struct AVCodecInternal; |
| 1335 | | 1346 | |