Skip to content

Instantly share code, notes, and snippets.

View Sibras's full-sized avatar

Matthew Oliver Sibras

View GitHub Profile
@Sibras
Sibras / gist:6792316413f3a595d8a941d924cbe653
Created December 14, 2016 04:53
[PATCH 1/3] avutil/thread: Add pthread_cond_timedwait function.
From f4a48300bf545227b5fb9121bf46a95f40e8923a Mon Sep 17 00:00:00 2001
From: Matt Oliver <protogonoi@gmail.com>
Date: Wed, 7 Dec 2016 16:55:35 +1100
Subject: [PATCH 1/3] avutil/thread: Add pthread_cond_timedwait function.
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
---
compat/os2threads.h | 24 ++++++++++++++++++++++++
compat/w32pthreads.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
libavutil/thread.h | 6 ++++++
@Sibras
Sibras / gist:4c96b62db5f382ba004c56914a09f3fe
Created December 14, 2016 04:54
[PATCH 2/3] avformat/udp: Use avutil compat pthread_cond_timedwait.
From 62da19c5377b1394bd919badd8fb7642294077cf Mon Sep 17 00:00:00 2001
From: Matt Oliver <protogonoi@gmail.com>
Date: Wed, 7 Dec 2016 16:57:14 +1100
Subject: [PATCH 2/3] avformat/udp: Use avutil compat pthread_cond_timedwait.
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
---
libavformat/udp.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
@Sibras
Sibras / gist:6fef0e4a57e44576ed0929c913c7e9d5
Last active December 16, 2016 01:55
[PATCH 3/3] avformat/udp: Enable FIFO when using windows sockets.
From b548dbc7de4e17c500658d263f152013290859cb Mon Sep 17 00:00:00 2001
From: Matt Oliver <protogonoi@gmail.com>
Date: Fri, 16 Dec 2016 12:53:28 +1100
Subject: [PATCH 3/3] avformat/udp: Enable FIFO when using windows sockets.
Signed-off-by: Matt Oliver <protogonoi@gmail.com>
---
libavformat/udp.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
#include "TvFFFrameReader.h"
#include <memory>
TvFFFrameReader::TvFFFrameReader(MemManager* mem_manager, const std::string& filename, const int gpu_index,
const int out_width, const int out_height)
: _mem_manager(mem_manager)
, _filename(filename)
{
// Set up decoding options