diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-09-17 19:54:37 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-15 18:20:59 +0100 |
commit | 96443ab4b04d5f438fd90b23948327a3580c41d0 (patch) | |
tree | dcfb110061ddd636c44d7134b0f51ccd422cab1b /libavformat/asfdec_o.c | |
parent | 33870a6aa7cd7c1a2308d678d97116c6285bfa96 (diff) | |
download | ffmpeg-96443ab4b04d5f438fd90b23948327a3580c41d0.tar.gz |
avformat/asfdec_o: Remove code duplication
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/asfdec_o.c')
-rw-r--r-- | libavformat/asfdec_o.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c index 9fd38f1bfe..655ba9f9ef 100644 --- a/libavformat/asfdec_o.c +++ b/libavformat/asfdec_o.c @@ -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); } } |