X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fffmpeg_examiner.cc;h=16a89faa75a580e1ef55aa1a595d0e46fbc43d14;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=6d5e33238913c0f1e1afb79659e005ebb42f099b;hpb=f07d5125a7b609320682689abe40781f096ca25e;p=dcpomatic.git diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 6d5e33238..16a89faa7 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -56,7 +56,7 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr c, shared_ptrcodec->channel_layout == 0) { s->codec->channel_layout = av_get_default_channel_layout (s->codec->channels); } - + _audio_streams.push_back ( shared_ptr ( new FFmpegAudioStream (audio_stream_name (s), s->id, s->codec->sample_rate, s->codec->channels) @@ -105,7 +105,7 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr c, shared_ptruses_index (_format_context, _packet.stream_index)) { audio_packet (context, _audio_streams[i]); @@ -180,7 +180,7 @@ optional FFmpegExaminer::frame_time (AVStream* s) const { optional t; - + int64_t const bet = av_frame_get_best_effort_timestamp (_frame); if (bet != AV_NOPTS_VALUE) { t = ContentTime::from_seconds (bet * av_q2d (s->time_base)); @@ -263,7 +263,7 @@ FFmpegExaminer::stream_name (AVStream* s) const if (lang) { n << lang->value; } - + AVDictionaryEntry const * title = av_dict_get (s->metadata, "title", 0, 0); if (title) { if (!n.str().empty()) {