Fix null pointer dereference accessing reference pics in h264_decode() function. It fixes crashes when changing aspect ratio of h264 files in mplayer