mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
libavcodec/qsvdec_h264.c: using "private_spspps_buf" argument for av_bitstream_filter_filter() to avoid failure after decoder re-initialization.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1defff85cb
commit
684b703843
@ -115,7 +115,7 @@ static int qsv_decode_frame(AVCodecContext *avctx, void *data,
|
||||
|
||||
} else {
|
||||
/* no annex-b prefix. try to restore: */
|
||||
ret = av_bitstream_filter_filter(s->bsf, avctx, NULL,
|
||||
ret = av_bitstream_filter_filter(s->bsf, avctx, "private_spspps_buf",
|
||||
&p_filtered, &n_filtered,
|
||||
avpkt->data, avpkt->size, 0);
|
||||
if (ret>=0) {
|
||||
|
Loading…
Reference in New Issue
Block a user