Skip to content

Commit f9e8f77

Browse files
author
Clement Champetier
committed
OutputFile: copy timing information to wrapped packet
1 parent f757baf commit f9e8f77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ IOutputStream::EWrappingStatus OutputFile::wrap( const CodedData& data, const si
171171
packet.stream_index = streamIndex;
172172
packet.data = (uint8_t*)data.getData();
173173
packet.size = data.getSize();
174+
// copy timing information
175+
packet.duration = data.getAVPacket().duration;
176+
packet.pts = data.getAVPacket().pts;
177+
packet.dts = data.getAVPacket().dts;
174178

175179
_formatContext.writeFrame( packet );
176180

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy