[FFmpeg-devel] [PATCH 01/16] doc/examples: fix assignments in if()

Michael Niedermayer michaelni at gmx.at
Mon Jan 14 00:20:10 CET 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 doc/examples/demuxing.c         |    2 +-
 doc/examples/resampling_audio.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/examples/demuxing.c b/doc/examples/demuxing.c
index 3c9d4a1..bee21b7 100644
--- a/doc/examples/demuxing.c
+++ b/doc/examples/demuxing.c
@@ -314,7 +314,7 @@ int main (int argc, char **argv)
     if (audio_stream) {
         const char *fmt;
 
-        if ((ret = get_format_from_sample_fmt(&fmt, audio_dec_ctx->sample_fmt) < 0))
+        if ((ret = get_format_from_sample_fmt(&fmt, audio_dec_ctx->sample_fmt)) < 0)
             goto end;
         printf("Play the output audio file with the command:\n"
                "ffplay -f %s -ac %d -ar %d %s\n",
diff --git a/doc/examples/resampling_audio.c b/doc/examples/resampling_audio.c
index 9075719..dd128e8 100644
--- a/doc/examples/resampling_audio.c
+++ b/doc/examples/resampling_audio.c
@@ -200,7 +200,7 @@ int main(int argc, char **argv)
         fwrite(dst_data[0], 1, dst_bufsize, dst_file);
     } while (t < 10);
 
-    if ((ret = get_format_from_sample_fmt(&fmt, dst_sample_fmt) < 0))
+    if ((ret = get_format_from_sample_fmt(&fmt, dst_sample_fmt)) < 0)
         goto end;
     fprintf(stderr, "Resampling succeeded. Play the output file with the command:\n"
             "ffplay -f %s -channel_layout %"PRId64" -channels %d -ar %d %s\n",
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list