[libav-bugs] [Bug 866] Crash on gstreamer viewing variable resolution h264 cameras

bugzilla at libav.org bugzilla at libav.org
Sat Jun 13 02:09:21 CEST 2015


https://bugzilla.libav.org/show_bug.cgi?id=866

vitto.giova at yahoo.it <vitto.giova at yahoo.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |vitto.giova at yahoo.it
         Resolution|---                         |INVALID

--- Comment #7 from vitto.giova at yahoo.it <vitto.giova at yahoo.it> ---
(In reply to Nicola from comment #5)
> (In reply to lu_zero at gentoo.org from comment #4)
> > I'd like to know better what's going on, I assumed that the decoder was
> > providing faulty data and I would fix the problem there, thus why I asked
> > you for the file causing the problem.
> 
> sorry the file cannot be shared
> 
> > 
> > If the problem is really a bug in gst causing it to pass the wrong dimension
> > I wouldn't try to add more logic where it is not needed.
> 
> yes gstreamer is passing wrong dimensions, for example bytewidth 704 and src
> linesize 352, mplayer and vlc don't crash with the same file

mplayer and vlc are probably not using av_image functions or using them with
correct parameters. Did you try avplay?

There are functions suited exactly to get the correct linesize if you are not
sure (check av_image_get_linesize())

Finally all the av_image* functions are low level functions so they assume the
user knows what he or she is doing. Additionally over-protectionism about api
usage is detrimental in this case: it's better that the app crashes so that a
dev can notice and fix the problem rather than silently failing and not drawing
anything when a user is trying to watch a video.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150613/45cb0e27/attachment.html>


More information about the libav-bugs mailing list