summaryrefslogtreecommitdiff
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2015-03-17 00:05:58 +0100
committerClément Bœsch <u@pkh.me>2015-03-17 00:05:58 +0100
commitb17620b81bc1c4562a760f24be83bc13a3f42bd5 (patch)
treee39fc939f726d20b8d4decbdfe2f527e9402b490 /libavcodec/libx264.c
parentfd682b189264dc3a7fd913a21ff0c23bb08e3ef4 (diff)
avcodec/libx264: use AVERROR_EXTERNAL instead of AVERROR_UNKNOWN
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index aba02821aa..72a07169af 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -268,7 +268,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
}
do {
if (x264_encoder_encode(x4->enc, &nal, &nnal, frame? &x4->pic: NULL, &pic_out) < 0)
- return AVERROR_UNKNOWN;
+ return AVERROR_EXTERNAL;
ret = encode_nals(ctx, pkt, nal, nnal);
if (ret < 0)
@@ -687,7 +687,7 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4->enc = x264_encoder_open(&x4->params);
if (!x4->enc)
- return AVERROR_UNKNOWN;
+ return AVERROR_EXTERNAL;
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)