[FFmpeg-devel] [PATCH 2/2] avcodec/videotoolbox: fix decoding of some h264 bitstreams

wm4 nfxjfg at googlemail.com
Mon Sep 25 13:06:39 EEST 2017


On Mon, 25 Sep 2017 09:02:36 +0200
Hendrik Leppkes <h.leppkes at gmail.com> wrote:

> On Mon, Sep 25, 2017 at 3:31 AM, Aman Gupta <ffmpeg at tmm1.net> wrote:
> >
> > How do the other hwaccels handle mid-stream SPS changes?
> >  
> 
> Real HWAccels (ie. VAAPI, VDPAU or DXVA) communicate the SPS/PPS
> content for every frame, they don't keep a persistent state internally
> - that way the only "state" is the frame size and pixel format, and
> when those change get_format is called and the hwaccel re-initialized.

Maybe it would be better if VT detected SPS/PPS changes itself, and
reinitialized the VT session on demand when feeding slices. This way we
wouldn't have to mess with the normal h264 software decoder reinit
logic.


More information about the ffmpeg-devel mailing list