avformat/nutenc: Fix indentation

Forgotten after 82beb46e65.
Also use loop-scope for iterators while at it.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.0
Andreas Rheinhardt 1 year ago
parent 1a52cbd404
commit 8b83b52d0f
  1. 6
      libavformat/nutenc.c

@ -1067,15 +1067,15 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
goto fail; goto fail;
if ((1ll<<60) % nut->sp_count == 0) if ((1ll<<60) % nut->sp_count == 0)
for (i=0; i<s->nb_streams; i++) { for (unsigned i = 0; i < s->nb_streams; i++) {
int j;
StreamContext *nus = &nut->stream[i]; StreamContext *nus = &nut->stream[i];
av_reallocp_array(&nus->keyframe_pts, 2*nut->sp_count, sizeof(*nus->keyframe_pts)); av_reallocp_array(&nus->keyframe_pts, 2*nut->sp_count, sizeof(*nus->keyframe_pts));
if (!nus->keyframe_pts) { if (!nus->keyframe_pts) {
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto fail; goto fail;
} }
for (j=nut->sp_count == 1 ? 0 : nut->sp_count; j<2*nut->sp_count; j++) for (int j = nut->sp_count == 1 ? 0 : nut->sp_count;
j < 2 * nut->sp_count; j++)
nus->keyframe_pts[j] = AV_NOPTS_VALUE; nus->keyframe_pts[j] = AV_NOPTS_VALUE;
} }
} }

Loading…
Cancel
Save