Skip to content

Commit 5ffe4f3

Browse files
committed
winegstreamer: Prepend a h264parse element before decoder.
1 parent 48cd14f commit 5ffe4f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dlls/winegstreamer/wg_transform.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,16 @@ NTSTATUS wg_transform_create(void *args)
404404

405405
switch (input_format.major_type)
406406
{
407+
case WG_MAJOR_TYPE_VIDEO_H264:
408+
if (!(element = create_element("h264parse", "bad"))
409+
|| !append_element(transform->container, element, &first, &last))
410+
goto out;
411+
/* FALLTHROUGH */
407412
case WG_MAJOR_TYPE_AUDIO_ENCODED:
408413
case WG_MAJOR_TYPE_AUDIO_MPEG1:
409414
case WG_MAJOR_TYPE_AUDIO_MPEG4:
410415
case WG_MAJOR_TYPE_AUDIO_WMA:
411416
case WG_MAJOR_TYPE_VIDEO_ENCODED:
412-
case WG_MAJOR_TYPE_VIDEO_H264:
413417
case WG_MAJOR_TYPE_VIDEO_CINEPAK:
414418
case WG_MAJOR_TYPE_VIDEO_INDEO:
415419
case WG_MAJOR_TYPE_VIDEO_WMV:

0 commit comments

Comments
 (0)