Improved more documenation, and switched to @ syntax for doxygen.

This commit is contained in:
Jonathan Thomas
2013-09-09 23:32:16 -05:00
parent a97f170738
commit 234201743a
43 changed files with 253 additions and 201 deletions

View File

@@ -1,3 +1,30 @@
/**
* @file
* @brief Source file for FFmpegReader class
* @author Jonathan Thomas <jonathan@openshot.org>
*
* @section LICENSE
*
* Copyright (c) 2008-2013 OpenShot Studios, LLC
* (http://www.openshotstudios.com). This file is part of
* OpenShot Library (http://www.openshot.org), an open-source project
* dedicated to delivering high quality video editing and animation solutions
* to the world.
*
* OpenShot Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenShot Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../include/FFmpegReader.h"
using namespace openshot;
@@ -1181,6 +1208,8 @@ audio_packet_location FFmpegReader::GetAudioPTSLocation(int pts)
// Divide by the video timebase, to get the video frame number (frame # is decimal at this point)
double frame = (audio_seconds * info.fps.ToDouble()) + 1;
/** @todo Make the value externally configurable */
// Frame # as a whole number (no more decimals)
int whole_frame = int(frame);