mxfdec: fix NULL checking in mxf_get_sorted_table_segments()
authorXi Wang <xi.wang@gmail.com>
Fri, 4 Jan 2013 21:09:47 +0000 (21:09 +0000)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Sat, 5 Jan 2013 01:43:42 +0000 (20:43 -0500)
commit3b81bba3bc5aca98d891cb377d27566de4745225
tree1cea6692f20b526d3db892f58e46a6497f9f5a99
parent3f89b49b07380e94a5685819fc7014b36d8ad1f2
mxfdec: fix NULL checking in mxf_get_sorted_table_segments()

The following out-of-memory check is broken.

    *sorted_segments  = av_mallocz(...);
    if (!sorted_segments) { ... }

The correct NULL check should use *sorted_segments.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/mxfdec.c