summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/apngdec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index b5696e069c..0f1d04a365 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -241,10 +241,6 @@ static int apng_read_header(AVFormatContext *s)
}
fail:
- if (st->codecpar->extradata_size) {
- av_freep(&st->codecpar->extradata);
- st->codecpar->extradata_size = 0;
- }
return ret;
}