Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2013-10-29 00:52:51 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-29 01:30:20 +0400
commit7ac67583c3a8edbd06426401186bf752534916b1 (patch)
treee6cae4a5748bbfb8409dbe16b6e18aebe109f3df /libavformat/avisynth.c
parentc7f9aab8014206d6ffb4c86d6e1f25fe7171ab39 (diff)
avisynth: Switch a couple of AVERROR_UNKNOWNs to AVERROR(ENOMEM)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r--libavformat/avisynth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index f34117c8ef..92818a5052 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -468,7 +468,7 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
return AVERROR_UNKNOWN;
pkt->data = av_malloc(pkt->size);
if (!pkt->data)
- return AVERROR_UNKNOWN;
+ return AVERROR(ENOMEM);
frame = avs_library->avs_get_frame(avs->clip, n);
error = avs_library->avs_clip_get_error(avs->clip);
@@ -566,7 +566,7 @@ static int avisynth_read_packet_audio(AVFormatContext *s, AVPacket *pkt,
return AVERROR_UNKNOWN;
pkt->data = av_malloc(pkt->size);
if (!pkt->data)
- return AVERROR_UNKNOWN;
+ return AVERROR(ENOMEM);
avs_library->avs_get_audio(avs->clip, pkt->data, n, samples);
error = avs_library->avs_clip_get_error(avs->clip);