remain size to prvent MB residual reading overflow
add safety check for bit-reading for headers
Merge pull request #319 from ruil2/encoder_update

Simplify encoder interface--remove EncoderFrame2 function
Merge pull request #320 from huili2/mb_residual_size_check

remain size to prevent MB residual reading overflow
refine android build, add TARGET option to specify target in sdk
update README
Merge pull request #323 from huili2/check_bit_read

add safety check for bit-reading for headers
add missed namespace for encoder, remove un-used file
Merge pull request #321 from licaiguo/add-android-target-option

Add android target option
Merge pull request #324 from volvet/add-missed-namespace-for-encoder

add missed namespace for encoder, remove un-used file
Squashed merge from writenal_refactor2
fix the crash issues by changing the type iMbWidth & iMbHeight.
Merge pull request #326 from licaiguo/fix-allocate-large-memory

fix the crash issues by changing the type of iMbWidth & iMbHeight.
Ignore project.properties

This file is autogenerated when building nowadays.
Merge pull request #327 from mstorsjo/ignore-android-files

Ignore project.properties
Enable x86 assembly by default if building for x86 android

Most users would probably miss enabling it otherwise.

It can still be disabled manually by passing USE_ASM=No on the
make command line.
Chain build commands using && instead of ;

This makes sure the build aborts as soon as possible if there is an
error, instead of having the error message drown in all the
following output.
Don't quote the android building commands in sh -c ''

The full command line can be written as such without any extra
wrapping.
Don't use LOCAL_PATH in LOCAL_SRC_FILES

These files are automatically relative to the directory of the
current makefile.
Run ndk-build from the android project top level directory

One doesn't need to run the ndk-build command from within the
jni subdirectory, calling it from the project top level directory
works just as well.

Also remove an unnecessary step of cd ../../../.. at the end -
since all make commands are run in a subshell, we don't need to
restore the current working directory afterwards.