aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dcaenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-24 00:33:40 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-27 02:23:43 +0200
commit7360e97e4beec13ef5aa87657490d8f272be9f26 (patch)
tree3e400f75d6f49cee2dcc9bd68a32ac7e4b311e61 /libavcodec/dcaenc.c
parent52dcf0e0f56b4a696ba134221c03facdc166c7fc (diff)
downloadffmpeg-7360e97e4beec13ef5aa87657490d8f272be9f26.tar.gz
avcodec/(dca|tta|pcm-bluray|pcm-dvd|wavpack)enc: Set pts+dur generically
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/dcaenc.c')
-rw-r--r--libavcodec/dcaenc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c
index 2481c4d3ec..6901e67860 100644
--- a/libavcodec/dcaenc.c
+++ b/libavcodec/dcaenc.c
@@ -39,8 +39,6 @@
#include "dcaenc.h"
#include "encode.h"
#include "fft.h"
-#include "internal.h"
-#include "mathops.h"
#include "put_bits.h"
#define MAX_CHANNELS 6
@@ -1215,8 +1213,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
flush_put_bits(&c->pb);
memset(put_bits_ptr(&c->pb), 0, put_bytes_left(&c->pb, 0));
- avpkt->pts = frame->pts;
- avpkt->duration = ff_samples_to_time_base(avctx, frame->nb_samples);
*got_packet_ptr = 1;
return 0;
}