1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

lavf/dv: shorten code by using a local variable

This commit is contained in:
Anton Khirnov 2023-04-24 16:00:38 +02:00
parent c7a852b638
commit aae5ba31ca

View File

@ -437,10 +437,13 @@ int avpriv_dv_produce_packet(DVDemuxContext *c, AVPacket *pkt,
return size;
for (i = 0; i < c->ach; i++) {
c->audio_pkt[i].pos = pos;
c->audio_pkt[i].size = size;
c->audio_pkt[i].pts = (c->sys->height == 720) ? (c->frames & ~1) : c->frames;
c->audio_pkt[i].duration = 1;
DVPacket *dpkt = &c->audio_pkt[i];
dpkt->pos = pos;
dpkt->size = size;
dpkt->pts = (c->sys->height == 720) ? (c->frames & ~1) : c->frames;
dpkt->duration = 1;
ppcm[i] = c->audio_buf[i];
}
if (c->ach)