mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
ffvpx: update ffmpeg to 3.4.9
This commit is contained in:
parent
c45d02ceb2
commit
9ab5fe7274
20 changed files with 137 additions and 75 deletions
|
|
@ -296,9 +296,8 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
|
|||
if (dst == src)
|
||||
return 0;
|
||||
|
||||
// We can't fail if SPS isn't set at it breaks current skip_frame code
|
||||
//if (!h1->ps.sps)
|
||||
// return AVERROR_INVALIDDATA;
|
||||
if (inited && !h1->ps.sps)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
if (inited &&
|
||||
(h->width != h1->width ||
|
||||
|
|
@ -915,6 +914,11 @@ static int h264_slice_header_init(H264Context *h)
|
|||
const SPS *sps = h->ps.sps;
|
||||
int i, ret;
|
||||
|
||||
if (!sps) {
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ff_set_sar(h->avctx, sps->sar);
|
||||
av_pix_fmt_get_chroma_sub_sample(h->avctx->pix_fmt,
|
||||
&h->chroma_x_shift, &h->chroma_y_shift);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue