diff options
Diffstat (limited to 'libavformat/thp.c')
-rw-r--r-- | libavformat/thp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c index a7403a60bc..7f9a8881ca 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -96,7 +96,7 @@ static int thp_read_header(AVFormatContext *s, /* Video component. */ st = av_new_stream(s, 0); if (!st) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); /* The denominator and numerator are switched because 1/fps is required. */ @@ -119,7 +119,7 @@ static int thp_read_header(AVFormatContext *s, /* Audio component. */ st = av_new_stream(s, 0); if (!st) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_id = CODEC_ID_ADPCM_THP; |