mirror of https://github.com/mpv-player/mpv
Remove cast of realloc result missed in last patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20135 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4f58754e78
commit
3b81347247
|
@ -841,7 +841,7 @@ demux_mkv_read_trackencodings (demuxer_t *demuxer, mkv_track_t *track)
|
||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
if (e.order <= ce[i].order)
|
if (e.order <= ce[i].order)
|
||||||
break;
|
break;
|
||||||
ce = (mkv_content_encoding_t *) realloc (ce, (n+1) *sizeof (*ce));
|
ce = realloc (ce, (n+1) *sizeof (*ce));
|
||||||
memmove (ce+i+1, ce+i, (n-i) * sizeof (*ce));
|
memmove (ce+i+1, ce+i, (n-i) * sizeof (*ce));
|
||||||
memcpy (ce+i, &e, sizeof (e));
|
memcpy (ce+i, &e, sizeof (e));
|
||||||
n++;
|
n++;
|
||||||
|
|
Loading…
Reference in New Issue