diff --git a/src/media/media_stream.h b/src/media/media_stream.h index a5c5421eba447ec3f2cd82cf8b043f7a7b9f80d0..1a8909a0f2287c0907ac549b1abae361268be703 100644 --- a/src/media/media_stream.h +++ b/src/media/media_stream.h @@ -71,12 +71,12 @@ struct MediaStream { : MediaStream(streamName, fmt, 0) {} - MediaStream(const std::string& streamName, AudioFormat fmt, int64_t firstTimestamp) + MediaStream(const std::string& streamName, AudioFormat fmt, int64_t startTimestamp) : name(streamName) , format(fmt.sampleFormat) , isVideo(false) , timeBase(1, fmt.sample_rate) - , firstTimestamp(firstTimestamp) + , firstTimestamp(startTimestamp) , sampleRate(fmt.sample_rate) , nbChannels(fmt.nb_channels) , frameSize(fmt.sample_rate / 50) // standard frame size for our encoder is 20 ms @@ -86,9 +86,9 @@ struct MediaStream { : MediaStream(streamName, c, 0) {} - MediaStream(const std::string& streamName, AVCodecContext* c, int64_t firstTimestamp) + MediaStream(const std::string& streamName, AVCodecContext* c, int64_t startTimestamp) : name(streamName) - , firstTimestamp(firstTimestamp) + , firstTimestamp(startTimestamp) { timeBase = c->time_base; switch (c->codec_type) {