mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 06:46:42 +08:00
update VP8/VP9 examples to decode/encode frames (#704)
This commit is contained in:
@@ -67,8 +67,8 @@ func (d *av1Encoder) initialize() error {
|
||||
C.av_opt_set(d.codecCtx.priv_data, key, val, 0)
|
||||
|
||||
d.codecCtx.pix_fmt = C.AV_PIX_FMT_YUV420P
|
||||
d.codecCtx.width = (C.int)(d.Height)
|
||||
d.codecCtx.height = (C.int)(d.Width)
|
||||
d.codecCtx.width = (C.int)(d.Width)
|
||||
d.codecCtx.height = (C.int)(d.Height)
|
||||
d.codecCtx.time_base.num = 1
|
||||
d.codecCtx.time_base.den = (C.int)(d.FPS)
|
||||
d.codecCtx.gop_size = 10
|
||||
|
Reference in New Issue
Block a user