History

apedec: Fix alignment and fate.

Michael Niedermayer committed 14 years ago

Commit 6462d281 parent 4c677df1 file · +3 −3Browse files

Unified · Split

libavcodec/apedec.c+3−3
@@ -838,10 +838,10 @@ static int ape_decode_frame(AVCodecContext *avctx, void *data, · 837 unmodified lines
838838 return AVERROR_INVALIDDATA;
839839 }
840840
841− tmp_data = av_realloc(s->data, FFALIGN(buf_size, 4));
842− if (!tmp_data)
841+ av_free(s->data);
842+ s->data = av_malloc(FFALIGN(buf_size, 4));
843+ if (!s->data)
843844 return AVERROR(ENOMEM);
844− s->data = tmp_data;
845845 s->dsp.bswap_buf((uint32_t*)s->data, (const uint32_t*)buf, buf_size >> 2);
846846 s->ptr = s->data;
847847 s->data_end = s->data + buf_size;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t