mozilla/pdf.js — pull request #5566 by MaMazav (2014-12-20 20:36:51+00:00)
Title: Fixed empty packet parsing bug

Packet iterator was not advanced for empty packets.

Here is a fictively-generated image for testing (was generated by simply replacing the last quality layer's packets in empty ones):
https://www.dropbox.com/s/wdem5s87pp3zowf/cabs_small_bw_with_plt_reconstructed_9layers.j2k?dl=0