summaryrefslogtreecommitdiff
path: root/libavformat/westwood_vqa.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-08 05:02:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-08 05:02:52 +0200
commitd28a8ad8f33df0b65aa9daa0ed516c9d78dabdb9 (patch)
tree725341047df6bd3e86136bd95901d8e9a21f5359 /libavformat/westwood_vqa.c
parentb5a87dc193d6901a00aa4d195f1aae9519b8712f (diff)
parentf054e309c58894450a5d18cce9799ef58aab9f14 (diff)
Merge commit 'f054e309c58894450a5d18cce9799ef58aab9f14'
* commit 'f054e309c58894450a5d18cce9799ef58aab9f14': qdm2: use init_static_data westwood_vqa: do not free extradata on error in read_header Conflicts: libavformat/westwood_vqa.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/westwood_vqa.c')
-rw-r--r--libavformat/westwood_vqa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c
index 00e95cd67a..d8791da131 100644
--- a/libavformat/westwood_vqa.c
+++ b/libavformat/westwood_vqa.c
@@ -108,7 +108,6 @@ static int wsvqa_read_header(AVFormatContext *s)
header = (unsigned char *)st->codec->extradata;
if (avio_read(pb, st->codec->extradata, VQA_HEADER_SIZE) !=
VQA_HEADER_SIZE) {
- av_free(st->codec->extradata);
return AVERROR(EIO);
}
st->codec->width = AV_RL16(&header[6]);