libde265.js icon indicating copy to clipboard operation
libde265.js copied to clipboard

coded parameter out of range error

Open warpdesign opened this issue 8 years ago • 4 comments

While trying to decode an heic picture coming from an iPhone X I am getting this error:

hevc-decoder.js:166 coded parameter out of range

In this case, code is 8.

I am using Nokia's decoder which in turn uses libde265.js.

See nokiatech/heif#33

warpdesign avatar Nov 15 '17 10:11 warpdesign

Which version of libde265.js is used? Could you please provide a sample file and a demo setup so we can reproduce the error?

cc @farindk

fancycode avatar Nov 15 '17 10:11 fancycode

I am using the latest min https://github.com/strukturag/libde265.js/tree/master/lib found here.

I have attached a sample file.

I'll see if I can setup a small project to reproduce the bug.

rodo.zip

warpdesign avatar Nov 15 '17 11:11 warpdesign

I tried to reproduce it like this: I used Nokia's example code to extract the HEVC data stream from the HEIF file. This worked fine for other HEIF files. However, for your file, the Nokia code crashes with this error: Skipping an unknown box of type 'colr' in ItemPropertyContainer. Skipping an unknown box of type 'pixi' in ItemPropertyContainer. Skipping an unknown box of type 'colr' in ItemPropertyContainer. Skipping an unknown box of type 'pixi' in ItemPropertyContainer. terminate called after throwing an instance of 'std::out_of_range' what(): map::at Aborted (core dumped)

Could it be that the Nokia code cannot parse this file and you got corrupted HEVC data because of that?

Or, in case you got the HEVC data, could you send me the raw HEVC data-stream that I can test with the decoder?

farindk avatar Nov 23 '17 14:11 farindk

https://user-images.githubusercontent.com/925519/140191387-b13f4919-c853-4c30-a3f9-27cb6122082e.mp4

Here is an example generated from ZoneMinder that exhibits this error.

connortechnology avatar Nov 03 '21 20:11 connortechnology