mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/asfdec_o: Remove code duplication
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
33870a6aa7
commit
96443ab4b0
@ -1542,14 +1542,7 @@ static void reset_packet_state(AVFormatContext *s)
|
||||
asf->sub_dts = 0;
|
||||
for (i = 0; i < asf->nb_streams; i++) {
|
||||
ASFPacket *pkt = &asf->asf_st[i]->pkt;
|
||||
pkt->size_left = 0;
|
||||
pkt->data_size = 0;
|
||||
pkt->duration = 0;
|
||||
pkt->flags = 0;
|
||||
pkt->dts = 0;
|
||||
pkt->duration = 0;
|
||||
av_packet_unref(&pkt->avpkt);
|
||||
av_init_packet(&pkt->avpkt);
|
||||
reset_packet(pkt);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user