Lines 1248-1254
Link Here
|
1248 |
st->codec->flags |= CODEC_FLAG2_FAST; |
1248 |
st->codec->flags |= CODEC_FLAG2_FAST; |
1249 |
// there is no trellis quantiser in libav* for mjpeg |
1249 |
// there is no trellis quantiser in libav* for mjpeg |
1250 |
if (st->codec->codec_id != CODEC_ID_MJPEG) |
1250 |
if (st->codec->codec_id != CODEC_ID_MJPEG) |
|
|
1251 |
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0) |
1251 |
st->codec->flags |= CODEC_FLAG_TRELLIS_QUANT; |
1252 |
st->codec->flags |= CODEC_FLAG_TRELLIS_QUANT; |
|
|
1253 |
#else |
1254 |
st->codec->trellis = 1; |
1255 |
#endif |
1252 |
st->codec->flags &= ~CODEC_FLAG_OBMC; |
1256 |
st->codec->flags &= ~CODEC_FLAG_OBMC; |
1253 |
// some formats want stream headers to be seperate |
1257 |
// some formats want stream headers to be seperate |
1254 |
if (oc->oformat->flags & AVFMT_GLOBALHEADER) |
1258 |
if (oc->oformat->flags & AVFMT_GLOBALHEADER) |