Fix brain-dead parts of r11216, specifically:
authorJeff Downs <heydowns@borg.com>
Fri, 14 Dec 2007 22:49:30 +0000 (22:49 +0000)
committerJeff Downs <heydowns@borg.com>
Fri, 14 Dec 2007 22:49:30 +0000 (22:49 +0000)
commit9a1feb860806d99ff33c8900bd919389f0f7e6bd
treeaf00122e32bb00ac584144e8e1fde0861ac6df13
parent04e911ed86a95e4b56f025515ae964c250297138
Fix brain-dead parts of r11216, specifically:
Actually unreference removed pics
And check for too many reference frames as originally intended, not equal
to max reference frames.

Originally committed as revision 11218 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c