Advertisement
oanastratulat

Untitled

Jan 5th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. diff --git a/ffmpeg.c b/ffmpeg.c
  2. index 4c5bf13..c6b00d5 100644
  3. --- a/ffmpeg.c
  4. +++ b/ffmpeg.c
  5. @@ -1096,9 +1096,12 @@ need_realloc:
  6. av_opt_set_int(ost->swr, "icl", av_get_default_channel_layout(ost->audio_channels_mapped), 0);
  7. av_opt_set_int(ost->swr, "uch", ost->audio_channels_mapped, 0);
  8. }
  9. - av_opt_set_int(ost->swr, "ich", dec->channels, 0);
  10. - if (av_opt_set_int(ost->swr, "och", enc->channels, 0)<0) {
  11. - av_log(NULL, AV_LOG_FATAL, "Too many output channels\n");
  12. + if (av_opt_set_int(ost->swr, "ich", dec->channels, 0) < 0) {
  13. + av_log(NULL, AV_LOG_FATAL, "Unsupported number of inputput channels\n");
  14. + exit_program(1);
  15. + }
  16. + if (av_opt_set_int(ost->swr, "och", enc->channels, 0) < 0) {
  17. + av_log(NULL, AV_LOG_FATAL, "Unsupported number of output channels\n");
  18. exit_program(1);
  19. }
  20. if(audio_sync_method>1) av_opt_set_int(ost->swr, "flags", SWR_FLAG_RESAMPLE, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement