[FFmpeg-trac] #6775(avcodec:new): gst-libav can no longer decode video (3.4 regression)
FFmpeg
trac at avcodec.org
Sat Nov 18 10:53:50 EET 2017
#6775: gst-libav can no longer decode video (3.4 regression)
------------------------------------+-----------------------------------
Reporter: heftig | Owner:
Type: defect | Status: new
Priority: critical | Component: avcodec
Version: git-master | Resolution:
Keywords: regression | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by heleppkes):
Replying to [comment:9 jcowgill]:
>
> I think there is a misunderstanding here about what a NULL packet sent
via avcodec_video_decode2 actually does, probably because the
documentation is a bit lacking in this area. The documentation says you
need a NULL packet at the end of a stream, but says nothing about NULL
packets sent at any other time. There are at least a few comments I found
in the ffmpeg source which imply that sending a NULL packet means EOF (as
opposed to draining, and allowing extra data later). Clearly the developer
who wrote the compat code in 3.4 thought this as well.
>
The key there is that nowhere in the source or the docs it does say you
can send a NULL packet at any other time then EOF. All mentions of NULL
drain packets include a wording similar to "at the end" (of the stream)
etc.
So while it may have worked somewhat in the past (there are reports of
this usage actually crashing with some decoders, though), the
documentation never actually told you that this was a valid call, or
suggested to do so in any way.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6775#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list