Revision f6d71b39
ffplay.c | ||
---|---|---|
31 | 31 |
#include "libavutil/imgutils.h" |
32 | 32 |
#include "libavutil/parseutils.h" |
33 | 33 |
#include "libavutil/samplefmt.h" |
34 |
#include "libavutil/avassert.h" |
|
34 | 35 |
#include "libavformat/avformat.h" |
35 | 36 |
#include "libavdevice/avdevice.h" |
36 | 37 |
#include "libswscale/swscale.h" |
... | ... | |
1582 | 1583 |
int i, w, h, stride[4]; |
1583 | 1584 |
unsigned edge; |
1584 | 1585 |
|
1586 |
av_assert0(codec->flags & CODEC_FLAG_EMU_EDGE); |
|
1587 |
|
|
1585 | 1588 |
if (codec->codec->capabilities & CODEC_CAP_NEG_LINESIZES) |
1586 | 1589 |
perms |= AV_PERM_NEG_LINESIZES; |
1587 | 1590 |
|
... | ... | |
1664 | 1667 |
codec = priv->is->video_st->codec; |
1665 | 1668 |
codec->opaque = ctx; |
1666 | 1669 |
if((codec->codec->capabilities & CODEC_CAP_DR1) |
1667 |
&& codec->codec_id != CODEC_ID_SVQ1 //chroma alignment from lavfi is insufficient |
|
1668 | 1670 |
) { |
1671 |
codec->flags |= CODEC_FLAG_EMU_EDGE; |
|
1669 | 1672 |
priv->use_dr1 = 1; |
1670 | 1673 |
codec->get_buffer = input_get_buffer; |
1671 | 1674 |
codec->release_buffer = input_release_buffer; |
Also available in: Unified diff