try setting out_frame pts from in_frame

This commit is contained in:
Isaac Connor 2019-02-14 15:54:47 -05:00
parent 62bf7d54f1
commit 281775cc80
1 changed files with 1 additions and 0 deletions

View File

@ -949,6 +949,7 @@ int VideoStore::writeAudioFramePacket(AVPacket *ipkt) {
0, in_frame->nb_samples)) 0, in_frame->nb_samples))
#endif #endif
#endif #endif
out_frame->pts = in_frame->pts;
av_frame_unref(in_frame); av_frame_unref(in_frame);
if ( ret < 0 ) { if ( ret < 0 ) {
Error("Could not resample frame (error '%s')", Error("Could not resample frame (error '%s')",