Bug #2777

Some png icons does not display in Movian

Added by Pär Degerman almost 8 years ago. Updated about 7 years ago.

Status:NewStart date:08/27/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

0%

Category:User interface
Target version:-
Found in version:4.10.29.gc15ba Platform:RPi

Description

I was missing some of my icons from my tvheadend server. The icons showed up correctly in other clients. Funny thing is that some icons display correctly, while others does not.

When opening this url in movian, nothing shows: http://logos.xmltv.se/tv4.se.png
When opening this url, the logo is shown correctly: http://logos.xmltv.se/svt1.svt.se.png

The log does not show anything unfortunately

History

#1 Updated by Pär Degerman almost 8 years ago

Upon closer inspection of the icons that do show and those which does not, I think I've found a pattern. The icons that show have 8bits/sample in the header. Icons with 16bits/sample in the header does not display.

#2 Updated by Pär Degerman almost 8 years ago

Ok, perhaps I have even found the culprit. (not sure since I haven't debugged the running program, and not tested anything yet - but still....)

On line 444 in src/image/image_decoder_libav.c the actual image decoding is happening by calling into libav. However according to [1] this call must be made in a loop or the library switched to single thread; "Yes, thread_count has to be set to 1 or the user application must call the decoder in a loop until the frame has been decoded."

[1] https://trac.ffmpeg.org/ticket/4404

#3 Updated by Andreas Smas about 7 years ago

Problem here is that libavcodec's PNG decoder lacks 16bit support.

Until that's fixed we're in a tight spot. I won't add another png-lib just to get 16bit support.

Also available in: Atom PDF