Re #1219: protect new ffmpeg features with #ifdefs

git-svn-id: https://svn.pjsip.org/repos/pjproject/branches/projects/2.0-dev@3496 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2011-04-06 06:58:38 +00:00
parent 81c78afc15
commit ea508b4ca1
1 changed files with 2 additions and 0 deletions

View File

@ -922,7 +922,9 @@ static pj_status_t open_ffmpeg_codec(ffmpeg_private *ff,
/* Set no delay, note that this may cause some codec functionals
* not working (e.g: rate control).
*/
#if LIBAVCODEC_VERSION_MAJOR >= 52 && LIBAVCODEC_VERSION_MINOR >= 113
ctx->rc_lookahead = 0;
#endif
/* Open ffmpeg codec */
pj_mutex_lock(ff_mutex);