Showing the changes to doc/examples/vaapi_transcode.c (1 of 1 file). Show all
Unified · Split
| @@ -179,7 +179,7 @@ static int dec_enc(AVPacket *pkt, AVCodec *enc_codec) · 178 unmodified lines | |||
| 179 | } | 179 | } |
| 180 | /* set AVCodecContext Parameters for encoder, here we keep them stay | 180 | /* set AVCodecContext Parameters for encoder, here we keep them stay |
| 181 | * the same as decoder. | 181 | * the same as decoder. |
| 182 | * xxx: now the the sample can't handle resolution change case. | 182 | * xxx: now the sample can't handle resolution change case. |
| 183 | */ | 183 | */ |
| 184 | encoder_ctx->time_base = av_inv_q(decoder_ctx->framerate); | 184 | encoder_ctx->time_base = av_inv_q(decoder_ctx->framerate); |
| 185 | encoder_ctx->pix_fmt = AV_PIX_FMT_VAAPI; | 185 | encoder_ctx->pix_fmt = AV_PIX_FMT_VAAPI; |