mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avisynth: Switch a couple of AVERROR_UNKNOWNs to AVERROR(ENOMEM)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c7f9aab801
commit
7ac67583c3
@ -468,7 +468,7 @@ static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
|
|||||||
return AVERROR_UNKNOWN;
|
return AVERROR_UNKNOWN;
|
||||||
pkt->data = av_malloc(pkt->size);
|
pkt->data = av_malloc(pkt->size);
|
||||||
if (!pkt->data)
|
if (!pkt->data)
|
||||||
return AVERROR_UNKNOWN;
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
frame = avs_library->avs_get_frame(avs->clip, n);
|
frame = avs_library->avs_get_frame(avs->clip, n);
|
||||||
error = avs_library->avs_clip_get_error(avs->clip);
|
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;
|
return AVERROR_UNKNOWN;
|
||||||
pkt->data = av_malloc(pkt->size);
|
pkt->data = av_malloc(pkt->size);
|
||||||
if (!pkt->data)
|
if (!pkt->data)
|
||||||
return AVERROR_UNKNOWN;
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
avs_library->avs_get_audio(avs->clip, pkt->data, n, samples);
|
avs_library->avs_get_audio(avs->clip, pkt->data, n, samples);
|
||||||
error = avs_library->avs_clip_get_error(avs->clip);
|
error = avs_library->avs_clip_get_error(avs->clip);
|
||||||
|
Loading…
Reference in New Issue
Block a user