Fix error check in av_file_map()
authorMans Rullgard <mans@mansr.com>
Sat, 4 Jun 2011 12:36:35 +0000 (13:36 +0100)
committerMans Rullgard <mans@mansr.com>
Sat, 4 Jun 2011 16:03:25 +0000 (17:03 +0100)
commitd0989bed226578a8f37ca90c78abc97abafb9794
tree85fa6e0d1b53c6a5e2b199bde45a261114c365d3
parentdc6632f1195c929a87ddf1b02d12b681c6de79ad
Fix error check in av_file_map()

On failure, mmap() returns MAP_FAILED, which may or may not be -1.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/file.c