doc/examples: fix assignments in if()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 48a7981e6f
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -314,7 +314,7 @@ int main (int argc, char **argv)
|
|||||||
if (audio_stream) {
|
if (audio_stream) {
|
||||||
const char *fmt;
|
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;
|
goto end;
|
||||||
printf("Play the output audio file with the command:\n"
|
printf("Play the output audio file with the command:\n"
|
||||||
"ffplay -f %s -ac %d -ar %d %s\n",
|
"ffplay -f %s -ac %d -ar %d %s\n",
|
||||||
|
@@ -200,7 +200,7 @@ int main(int argc, char **argv)
|
|||||||
fwrite(dst_data[0], 1, dst_bufsize, dst_file);
|
fwrite(dst_data[0], 1, dst_bufsize, dst_file);
|
||||||
} while (t < 10);
|
} 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;
|
goto end;
|
||||||
fprintf(stderr, "Resampling succeeded. Play the output file with the command:\n"
|
fprintf(stderr, "Resampling succeeded. Play the output file with the command:\n"
|
||||||
"ffplay -f %s -channel_layout %"PRId64" -channels %d -ar %d %s\n",
|
"ffplay -f %s -channel_layout %"PRId64" -channels %d -ar %d %s\n",
|
||||||
|
Reference in New Issue
Block a user