diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-06-15 20:40:14 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-06-15 20:40:14 +0400 |
commit | 608bda925a933be6ffdb91937125b6bba0c8a3d7 (patch) | |
tree | a7849b5a51a90c1beedea3a100959e41a790fcf7 /libavformat/microdvddec.c | |
parent | 9b6f2c7483952d889dfafc5d0ffbc34c0805c841 (diff) |
lavf/{srt,microdvd}: correctly raise error on avformat_new_stream() error.
Diffstat (limited to 'libavformat/microdvddec.c')
-rw-r--r-- | libavformat/microdvddec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/microdvddec.c b/libavformat/microdvddec.c index 5e37bc38a3..b1229fae01 100644 --- a/libavformat/microdvddec.c +++ b/libavformat/microdvddec.c @@ -62,7 +62,7 @@ static int microdvd_read_header(AVFormatContext *s) char c; if (!st) - return -1; + return AVERROR(ENOMEM); for (i=0; i<FF_ARRAY_ELEMS(microdvd->lines); i++) { microdvd->pos[i] = avio_tell(s->pb); ff_get_line(s->pb, microdvd->lines[i], sizeof(microdvd->lines[i])); |