Only set valid PTS/DTS

When the PTS is valid, set both PTS and DTS to avoid FFmpeg warnings.

Since configuration packets have no PTS, do not record these packets.
This commit is contained in:
Romain Vimont
2018-11-09 16:09:15 +01:00
parent 27686e9361
commit 2cd99e7205
3 changed files with 33 additions and 11 deletions

View File

@@ -10,12 +10,13 @@
struct frames;
struct decoder {
uint64_t pts;
struct frames *frames;
socket_t video_socket;
SDL_Thread *thread;
SDL_mutex *mutex;
struct recorder *recorder;
uint64_t pts;
uint32_t buffer_info_flags;
int remaining;
};