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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user