Browse Source

avformat/movenc: handle tracks w/o AVStreams in calculate_mpeg4_bit_rates

The generated text streams for chapters lack an AVStream since they
are but an internal concept within movenc.

Fixes #8910
tags/n4.4
Jan Ekström 5 years ago
parent
commit
d9e812797c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavformat/movenc.c

+ 3
- 2
libavformat/movenc.c View File

@@ -641,10 +641,11 @@ struct mpeg4_bit_rate_values {

static struct mpeg4_bit_rate_values calculate_mpeg4_bit_rates(MOVTrack *track)
{
AVCPBProperties *props =
AVCPBProperties *props = track->st ?
(AVCPBProperties*)av_stream_get_side_data(track->st,
AV_PKT_DATA_CPB_PROPERTIES,
NULL);
NULL) :
NULL;
struct mpeg4_bit_rate_values bit_rates = { 0 };

bit_rates.avg_bit_rate = compute_avg_bitrate(track);


Loading…
Cancel
Save