aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-24 16:00:38 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-02 10:57:21 +0200
commitaae5ba31ca94307c15e134d98e7492cf5a208426 (patch)
tree0056eec90f765a20a375d797366bfe23d5ed1709
parentc7a852b638b88f129790af31fc47c870c329eaaa (diff)
downloadffmpeg-aae5ba31ca94307c15e134d98e7492cf5a208426.tar.gz
lavf/dv: shorten code by using a local variable
-rw-r--r--libavformat/dv.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 9888c10b48..227caf168f 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -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)