avcodec: handle AVERROR_EXPERIMENTAL
authorNathan Caldwell <saintdev@gmail.com>
Fri, 19 Oct 2012 04:58:25 +0000 (22:58 -0600)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 21 Oct 2012 21:03:26 +0000 (23:03 +0200)
commitc854102da773fa898cc6dbc8ca474b1088ce5f12
treebabd340426cf4f8e658da03b18189088bd76d10d
parenta893655bdaa726a82424367b6456d195be12ebbc
avcodec: handle AVERROR_EXPERIMENTAL

Error out on init if a codec with CODEC_CAP_EXPERIMENTAL is requested
and strict_std_compliance is not FF_COMPLIANCE_EXPERIMENTAL.

Move the check from avconv to avcodec_open2() and return
AVERROR_EXPERIMENTAL accordingly.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
avconv.c
libavcodec/utils.c