when copying a packet (for old ffmpeg) copy pts, dts and duration too

This commit is contained in:
Isaac Connor 2019-04-03 16:51:27 -04:00
parent 94479fc850
commit 12631abd46
1 changed files with 3 additions and 0 deletions

View File

@ -434,6 +434,9 @@ unsigned int zm_av_packet_ref( AVPacket *dst, AVPacket *src ) {
av_new_packet(dst,src->size); av_new_packet(dst,src->size);
memcpy(dst->data, src->data, src->size); memcpy(dst->data, src->data, src->size);
dst->flags = src->flags; dst->flags = src->flags;
dst->pts = src->pts;
dst->dts = src->dts;
dst->duration = src->duration;
return 0; return 0;
} }
#endif #endif