mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
Fixed some warnings.
This commit is contained in:
parent
3da033cdb7
commit
14e0380444
@ -1300,7 +1300,7 @@ double TrackList::GetMinOffset() const
|
|||||||
|
|
||||||
double len = node->t->GetOffset();
|
double len = node->t->GetOffset();
|
||||||
|
|
||||||
while ((node = node->next)) {
|
while ((node = node->next)!=NULL) {
|
||||||
double l = node->t->GetOffset();
|
double l = node->t->GetOffset();
|
||||||
if (l < len) {
|
if (l < len) {
|
||||||
len = l;
|
len = l;
|
||||||
@ -1319,7 +1319,7 @@ double TrackList::GetStartTime() const
|
|||||||
|
|
||||||
double min = node->t->GetStartTime();
|
double min = node->t->GetStartTime();
|
||||||
|
|
||||||
while ((node = node->next)) {
|
while ((node = node->next)!=NULL) {
|
||||||
double l = node->t->GetStartTime();
|
double l = node->t->GetStartTime();
|
||||||
if (l < min) {
|
if (l < min) {
|
||||||
min = l;
|
min = l;
|
||||||
@ -1338,7 +1338,7 @@ double TrackList::GetEndTime() const
|
|||||||
|
|
||||||
double max = node->t->GetEndTime();
|
double max = node->t->GetEndTime();
|
||||||
|
|
||||||
while ((node = node->next)) {
|
while ((node = node->next)!=NULL) {
|
||||||
double l = node->t->GetEndTime();
|
double l = node->t->GetEndTime();
|
||||||
if (l > max) {
|
if (l > max) {
|
||||||
max = l;
|
max = l;
|
||||||
|
@ -394,9 +394,9 @@ bool ScreenshotCommand::Apply(CommandExecutionContext context)
|
|||||||
else if (captureMode.IsSameAs(wxT("trackpanel")))
|
else if (captureMode.IsSameAs(wxT("trackpanel")))
|
||||||
{
|
{
|
||||||
TrackPanel *panel = context.proj->mTrackPanel;
|
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 x = 0, y = -h;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
|
||||||
|
@ -1254,7 +1254,7 @@ void ExportFFmpegOptions::FetchFormatList()
|
|||||||
{
|
{
|
||||||
// Enumerate all output formats
|
// Enumerate all output formats
|
||||||
AVOutputFormat *ofmt = NULL;
|
AVOutputFormat *ofmt = NULL;
|
||||||
while ((ofmt = av_oformat_next(ofmt)))
|
while ((ofmt = av_oformat_next(ofmt))!=NULL)
|
||||||
{
|
{
|
||||||
// Any audio-capable format has default audio codec.
|
// Any audio-capable format has default audio codec.
|
||||||
// If it doesn't, then it doesn't supports any audio codecs
|
// If it doesn't, then it doesn't supports any audio codecs
|
||||||
@ -1275,7 +1275,7 @@ void ExportFFmpegOptions::FetchCodecList()
|
|||||||
{
|
{
|
||||||
// Enumerate all codecs
|
// Enumerate all codecs
|
||||||
AVCodec *codec = NULL;
|
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
|
// We're only interested in audio and only in encoders
|
||||||
if (codec->type == AVMEDIA_TYPE_AUDIO && av_codec_is_encoder(codec))
|
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)
|
if (found == 2)
|
||||||
{
|
{
|
||||||
AVCodec *codec = NULL;
|
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))
|
if (codec->type == AVMEDIA_TYPE_AUDIO && av_codec_is_encoder(codec))
|
||||||
{
|
{
|
||||||
@ -1610,7 +1610,7 @@ int ExportFFmpegOptions::FetchCompatibleFormatList(AVCodecID id, wxString *selfm
|
|||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
// Find all formats which have this codec as default and which are not in the list yet and add them too
|
// 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)
|
if (ofmt->audio_codec == id)
|
||||||
{
|
{
|
||||||
|
@ -64,7 +64,7 @@ size_t MultiFormatReader::ReadSamples(void* buffer, size_t len, size_t stride,
|
|||||||
MachineEndianness::EndiannessT end)
|
MachineEndianness::EndiannessT end)
|
||||||
{
|
{
|
||||||
bool swapflag = (mEnd.Which() != end);
|
bool swapflag = (mEnd.Which() != end);
|
||||||
size_t actRead;
|
size_t actRead=0;
|
||||||
|
|
||||||
switch(format)
|
switch(format)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user