Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-14 03:01:40 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-01-18 08:14:30 +0400
commite7475335b1e0f994ede02c0c5e06cc47bc356f98 (patch)
tree988ce3c4ff63bfec88a11ebc92c8b60f8d9ec117
parent722bfe4e7c73d0c3550011a08b5e76df714e2b27 (diff)
doc/examples: fix assignments in if()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 48a7981e6f93a27c9caca99d0bfb39e6244606a5) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--doc/examples/demuxing.c2
-rw-r--r--doc/examples/resampling_audio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/demuxing.c b/doc/examples/demuxing.c
index 3c9d4a1278..bee21b7b33 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 9075719a37..dd128e8d6e 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",