1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +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

@@ -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)
{