| 319 | } |
| 320 | |
| 321 | static void dump_cpb(void *ctx, const AVPacketSideData *sd, int log_level) |
| 322 | { |
| 323 | const AVCPBProperties *cpb = (const AVCPBProperties *)sd->data; |
| 324 | |
| 325 | if (sd->size < sizeof(*cpb)) { |
| 326 | av_log(ctx, AV_LOG_ERROR, "invalid data\n"); |
| 327 | return; |
| 328 | } |
| 329 | |
| 330 | av_log(ctx, log_level, |
| 331 | "bitrate max/min/avg: %"PRId64"/%"PRId64"/%"PRId64" buffer size: %"PRId64" ", |
| 332 | cpb->max_bitrate, cpb->min_bitrate, cpb->avg_bitrate, |
| 333 | cpb->buffer_size); |
| 334 | if (cpb->vbv_delay == UINT64_MAX) |
| 335 | av_log(ctx, log_level, "vbv_delay: N/A"); |
| 336 | else |
| 337 | av_log(ctx, log_level, "vbv_delay: %"PRIu64"", cpb->vbv_delay); |
| 338 | } |
| 339 | |
| 340 | static void dump_mastering_display_metadata(void *ctx, const AVPacketSideData *sd, |
| 341 | int log_level) |
no test coverage detected