1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 07:29:29 +02:00

Fixed some warnings.

This commit is contained in:
james.k.crook@gmail.com 2014-10-09 22:12:51 +00:00
parent 3da033cdb7
commit 14e0380444
4 changed files with 10 additions and 10 deletions

View File

@ -1300,7 +1300,7 @@ double TrackList::GetMinOffset() const
double len = node->t->GetOffset();
while ((node = node->next)) {
while ((node = node->next)!=NULL) {
double l = node->t->GetOffset();
if (l < len) {
len = l;
@ -1319,7 +1319,7 @@ double TrackList::GetStartTime() const
double min = node->t->GetStartTime();
while ((node = node->next)) {
while ((node = node->next)!=NULL) {
double l = node->t->GetStartTime();
if (l < min) {
min = l;
@ -1338,7 +1338,7 @@ double TrackList::GetEndTime() const
double max = node->t->GetEndTime();
while ((node = node->next)) {
while ((node = node->next)!=NULL) {
double l = node->t->GetEndTime();
if (l > max) {
max = l;

View File

@ -394,9 +394,9 @@ bool ScreenshotCommand::Apply(CommandExecutionContext context)
else if (captureMode.IsSameAs(wxT("trackpanel")))
{
TrackPanel *panel = context.proj->mTrackPanel;
AdornedRulerPanel *ruler = panel->mRuler;
//AdornedRulerPanel *ruler = panel->mRuler;
int h = ruler->GetRulerHeight();
int h = panel->mRuler->GetRulerHeight();
int x = 0, y = -h;
int width, height;

View File

@ -1254,7 +1254,7 @@ void ExportFFmpegOptions::FetchFormatList()
{
// Enumerate all output formats
AVOutputFormat *ofmt = NULL;
while ((ofmt = av_oformat_next(ofmt)))
while ((ofmt = av_oformat_next(ofmt))!=NULL)
{
// Any audio-capable format has default audio codec.
// If it doesn't, then it doesn't supports any audio codecs
@ -1275,7 +1275,7 @@ void ExportFFmpegOptions::FetchCodecList()
{
// Enumerate all codecs
AVCodec *codec = NULL;
while ((codec = av_codec_next(codec)))
while ((codec = av_codec_next(codec))!=NULL)
{
// We're only interested in audio and only in encoders
if (codec->type == AVMEDIA_TYPE_AUDIO && av_codec_is_encoder(codec))
@ -1535,7 +1535,7 @@ int ExportFFmpegOptions::FetchCompatibleCodecList(const wxChar *fmt, AVCodecID i
if (found == 2)
{
AVCodec *codec = NULL;
while ((codec = av_codec_next(codec)))
while ((codec = av_codec_next(codec))!=NULL)
{
if (codec->type == AVMEDIA_TYPE_AUDIO && av_codec_is_encoder(codec))
{
@ -1610,7 +1610,7 @@ int ExportFFmpegOptions::FetchCompatibleFormatList(AVCodecID id, wxString *selfm
if (found)
{
// Find all formats which have this codec as default and which are not in the list yet and add them too
while ((ofmt = av_oformat_next(ofmt)))
while ((ofmt = av_oformat_next(ofmt))!=NULL)
{
if (ofmt->audio_codec == id)
{

View File

@ -64,7 +64,7 @@ size_t MultiFormatReader::ReadSamples(void* buffer, size_t len, size_t stride,
MachineEndianness::EndiannessT end)
{
bool swapflag = (mEnd.Which() != end);
size_t actRead;
size_t actRead=0;
switch(format)
{