diff options
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r-- | libavformat/nutdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 9c017e04ab..88a2d32a45 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -822,10 +822,8 @@ static int nut_read_header(AVFormatContext *s) ff_metadata_conv_ctx(s, NULL, ff_nut_metadata_conv); -end: - if (ret < 0) - nut_read_close(s); - return FFMIN(ret, 0); + return 0; + fail: nut_read_close(s); |