Revision 175714c0 ffplay.c

View differences:

ffplay.c
1644 1644
    codec->opaque = ctx;
1645 1645
    if((codec->codec->capabilities & CODEC_CAP_DR1)
1646 1646
    ) {
1647
        codec->flags |= CODEC_FLAG_EMU_EDGE;
1647
        av_assert0(codec->flags & CODEC_FLAG_EMU_EDGE);
1648 1648
        priv->use_dr1 = 1;
1649 1649
        codec->get_buffer     = input_get_buffer;
1650 1650
        codec->release_buffer = input_release_buffer;
......
2206 2206

  
2207 2207
    set_context_opts(avctx, avcodec_opts[avctx->codec_type], 0, codec);
2208 2208

  
2209
    if(codec->capabilities & CODEC_CAP_DR1)
2210
        avctx->flags |= CODEC_FLAG_EMU_EDGE;
2211

  
2209 2212
    if (!codec ||
2210 2213
        avcodec_open(avctx, codec) < 0)
2211 2214
        return -1;

Also available in: Unified diff