ad_lavc: avoid warning messages on older FFmpeg or Libav

If the flag doesn't exist, the av_opt_set() API will print warning
messages.