Message ID | 20230424155553.24560-2-anton@khirnov.net |
---|---|
State | Accepted |
Commit | aae5ba31ca94307c15e134d98e7492cf5a208426 |
Headers | show |
Series | [FFmpeg-devel,1/3] lavf/dv: do not set video timebase more than once | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/dv.c b/libavformat/dv.c index d30dc298805..49c4f421fa5 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)