diff mbox

[FFmpeg-devel] lavfi/framequeue: avoid empty structs.

Message ID 20161219075657.12073-1-george@nsup.org
State Accepted
Commit bec8ea20c88e89dbfbe89c590a74c9818dfcfcce
Headers show

Commit Message

Nicolas George Dec. 19, 2016, 7:56 a.m. UTC
Fix compilation on MSVC.

Signed-off-by: Nicolas George <george@nsup.org>
---
 libavfilter/framequeue.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Nicolas George Dec. 19, 2016, 7:58 a.m. UTC | #1
Le nonidi 29 frimaire, an CCXXV, Nicolas George a écrit :
> Fix compilation on MSVC.

Forgot to write in the comment beore sending: this is obviously
untested.

Regards,
Matt Oliver Dec. 20, 2016, 7:01 a.m. UTC | #2
On 19 December 2016 at 18:58, Nicolas George <george@nsup.org> wrote:

> Le nonidi 29 frimaire, an CCXXV, Nicolas George a écrit :
> > Fix compilation on MSVC.
>
> Forgot to write in the comment beore sending: this is obviously
> untested.
>

tested and it fixes the issue. LGTM.
Nicolas George Dec. 20, 2016, 9:04 a.m. UTC | #3
Le decadi 30 frimaire, an CCXXV, Matt Oliver a écrit :
> tested and it fixes the issue. LGTM.

Thanks for testing, pushed.

Regards,
diff mbox

Patch

diff --git a/libavfilter/framequeue.h b/libavfilter/framequeue.h
index 558ea22223..f5ef744638 100644
--- a/libavfilter/framequeue.h
+++ b/libavfilter/framequeue.h
@@ -44,6 +44,7 @@  typedef struct FFFrameBucket {
  * It is currently empty.
  */
 typedef struct FFFrameQueueGlobal {
+    char dummy; /* C does not allow empty structs */
 } FFFrameQueueGlobal;
 
 /**