mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
lavc/libxavs2.c: fix code style - spaces
Signed-off-by: hwren <hwrenx@126.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
6721cd942a
commit
191203aa1f
@ -115,9 +115,7 @@ static av_cold int xavs2_init(AVCodecContext *avctx)
|
||||
xavs2_opt_set2("InitialQP", "%d", cae->qp);
|
||||
}
|
||||
|
||||
|
||||
ff_mpeg12_find_best_frame_rate(avctx->framerate, &code, NULL, NULL, 0);
|
||||
|
||||
xavs2_opt_set2("FrameRate", "%d", code);
|
||||
|
||||
cae->encoder = cae->api->encoder_create(cae->param);
|
||||
@ -222,7 +220,6 @@ static int xavs2_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
}
|
||||
|
||||
if ((cae->packet.len) && (cae->packet.state != XAVS2_STATE_FLUSH_END)) {
|
||||
|
||||
if (av_new_packet(pkt, cae->packet.len) < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "packet alloc failed\n");
|
||||
cae->api->encoder_packet_unref(cae->encoder, &cae->packet);
|
||||
|
Loading…
Reference in New Issue
Block a user