Fix null pointer dereference accessing reference pics in h264_decode() f...

...unction. It fixes crashes when changing aspect ratio of h264 files in mplayer