@@ -960,6 +960,8 @@ VideoDecoder::AVFrameStream VideoDecoder::decodeAVFrame(
960960 // Is this the kind of frame we're looking for?
961961 if (ffmpegStatus == AVSUCCESS && filterFunction (avFrame.get ())) {
962962 // Yes, this is the frame we'll return; break out of the decoding loop.
963+ printf (" %ld %ld\n " , avFrame->pts , avFrame->duration );
964+
963965 break ;
964966 } else if (ffmpegStatus == AVSUCCESS) {
965967 // No, but we received a valid frame - just not the kind we're looking
@@ -1070,13 +1072,13 @@ VideoDecoder::FrameOutput VideoDecoder::convertAVFrameToFrameOutput(
10701072 auto sampleRate = avFrame->sample_rate ;
10711073 auto numChannels = avFrame->ch_layout .nb_channels ;
10721074
1073- printf (" numSamples: %d\n " , numSamples);
1074- printf (" sample rate: %d\n " , sampleRate);
1075+ // printf("numSamples: %d\n", numSamples);
1076+ // printf("sample rate: %d\n", sampleRate);
10751077
1076- printf (" numChannels: %d\n " , numChannels);
1078+ // printf("numChannels: %d\n", numChannels);
10771079 int bytesPerSample =
10781080 av_get_bytes_per_sample (streamInfo.codecContext ->sample_fmt );
1079- printf (" bytes per sample: %d\n " , bytesPerSample);
1081+ // printf("bytes per sample: %d\n", bytesPerSample);
10801082
10811083 // Assuming format is FLTP (float 32bits ???)
10821084
0 commit comments