platform/upstream/gst-libav.git
6 years agoFix ASan build 71/151971/1 accepted/tizen/unified/20171213.153217 submit/tizen/20171016.084218 submit/tizen/20171212.063647
Dmitriy Evgenevich Gonzha [Fri, 22 Sep 2017 13:11:00 +0000 (16:11 +0300)]
Fix ASan build

ASan has no inline assembler (__asm__) support.
This patch removes inline assembler build in sanitized
environment for libav by additional configuration option

Change-Id: I8c5a1d87beac6909dd6d11cfd9b8ba3538fb3438
Signed-off-by: Dmitriy Evgenevich Gonzha <d.gonzha@samsung.com>
6 years agofixed memleak 36/144836/1 tizen_4.0_tv accepted/tizen/4.0/unified/20170828.222449 accepted/tizen/unified/20170823.031718 submit/tizen/20170822.114338 submit/tizen_4.0/20170828.100005 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Sejun Park [Fri, 18 Aug 2017 06:22:31 +0000 (15:22 +0900)]
fixed memleak

Change-Id: Iae9b80d83582852c593862732119416ff263d897

6 years agoFix memory leak 80/135780/1 accepted/tizen/4.0/unified/20170816.012703 accepted/tizen/4.0/unified/20170816.015434 accepted/tizen/unified/20170627.173238 submit/tizen/20170627.074820 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Gilbok Lee [Mon, 26 Jun 2017 10:55:51 +0000 (19:55 +0900)]
Fix memory leak

Change-Id: I9d803587910d85c8153cfa3554a7ffacc0a240cc

7 years ago1. changed nsv_probe header comparison syntax by byte unit 09/131009/1
Sejun Park [Thu, 25 May 2017 04:36:10 +0000 (13:36 +0900)]
1. changed nsv_probe header comparison syntax by byte unit
2. removed nsv_probe

Change-Id: Ic5fb81121eba27ed9bbe2dadebd8667174f55f2f

7 years agoMerge branch 'tizen_3.0' into tizen 20/110120/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170117.175044 accepted/tizen/ivi/20170118.041351 accepted/tizen/mobile/20170118.041249 accepted/tizen/tv/20170118.041312 accepted/tizen/unified/20170309.035840 accepted/tizen/wearable/20170118.041326 submit/tizen/20170117.102244 submit/tizen_unified/20170308.100413 tizen_4.0.m1_release
Sejun Park [Fri, 13 Jan 2017 04:09:53 +0000 (13:09 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: Ic90032a2dd99ff47346c8a502767c027afab090d

7 years agofixed memory leaks caused by no freeing caps 16/110116/2 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 tizen_3.0_tv accepted/tizen/3.0/common/20170119.105628 accepted/tizen/3.0/ivi/20170118.230243 accepted/tizen/3.0/mobile/20170118.230151 accepted/tizen/3.0/tv/20170118.230209 accepted/tizen/3.0/wearable/20170118.230230 submit/tizen_3.0/20170117.101514
Sejun Park [Fri, 13 Jan 2017 04:04:08 +0000 (13:04 +0900)]
fixed memory leaks caused by no freeing caps

Change-Id: I9957cb2f44dc4acec6f6fd567367b5149748afbf

7 years agoMerge branch 'tizen_3.0' into tizen 60/108860/1
Gilbok Lee [Fri, 6 Jan 2017 05:19:22 +0000 (14:19 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I085c1b96db3553a9b676c4e1c64b8669a1e10227

7 years agodisable unused plugins in TV product 56/100556/3 accepted/tizen/common/20161207.184542 accepted/tizen/ivi/20161208.012233 accepted/tizen/mobile/20161208.011850 accepted/tizen/tv/20161208.012033 accepted/tizen/wearable/20161208.012132 submit/tizen/20161207.075356
Younghwan [Mon, 28 Nov 2016 11:09:50 +0000 (20:09 +0900)]
disable unused plugins in TV product

Change-Id: Iaa7cdcba9d5e6840f46181b9204edd1cfa37e7d1

7 years agodisable unused plugins in TV product 55/100555/3 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.142947 accepted/tizen/3.0.m2/tv/20170104.143439 accepted/tizen/3.0.m2/wearable/20170104.143837 accepted/tizen/3.0/common/20161207.194459 accepted/tizen/3.0/ivi/20161207.011909 accepted/tizen/3.0/mobile/20161207.011507 accepted/tizen/3.0/tv/20161207.011703 accepted/tizen/3.0/wearable/20161207.011802 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161206.052949
Younghwan [Mon, 28 Nov 2016 11:07:21 +0000 (20:07 +0900)]
disable unused plugins in TV product

Change-Id: I1304e5592048c3b43d490038355e48bf1c759dbf

7 years agoRemoved DivX codec from support lists 80/94980/1 accepted/tizen/3.0/common/20161114.082451 accepted/tizen/3.0/ivi/20161102.080138 accepted/tizen/3.0/mobile/20161102.080049 accepted/tizen/3.0/tv/20161102.080119 accepted/tizen/3.0/wearable/20161102.080129 submit/tizen_3.0/20161102.054152 submit/tizen_3.0_common/20161110.084657
Sejun Park [Thu, 27 Oct 2016 08:45:52 +0000 (17:45 +0900)]
Removed DivX codec from support lists

Change-Id: I47de5ae54e63cdca9aebcdbfa17eeeb0f3995b0c
Signed-off-by: Eunhae Choi <eunhae1.choi@samsung.com>
7 years agoRemoved DivX codec from support lists 70/94170/2 accepted/tizen/common/20161027.124353 accepted/tizen/ivi/20161028.152027 accepted/tizen/mobile/20161028.151939 accepted/tizen/tv/20161028.151951 accepted/tizen/wearable/20161028.152006 submit/tizen/20161027.093654
Sejun Park [Thu, 27 Oct 2016 08:45:52 +0000 (17:45 +0900)]
Removed DivX codec from support lists

Change-Id: I47de5ae54e63cdca9aebcdbfa17eeeb0f3995b0c

8 years agoMerge "[audioencoder] Fix bug - codec data is missed, so memory leak is happened... accepted/tizen/3.0/ivi/20161011.044135 accepted/tizen/3.0/mobile/20161015.033208 accepted/tizen/3.0/tv/20161016.004645 accepted/tizen/3.0/wearable/20161015.082804 accepted/tizen/common/20160317.155954 accepted/tizen/ivi/20160316.135458 accepted/tizen/mobile/20160316.135402 accepted/tizen/tv/20160316.135420 accepted/tizen/wearable/20160316.135437 submit/tizen/20160316.114205 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000002 submit/tizen_3.0_mobile/20161015.000002 submit/tizen_3.0_tv/20161015.000002 submit/tizen_3.0_wearable/20161015.000002
Heechul Jeon [Wed, 16 Mar 2016 11:38:45 +0000 (04:38 -0700)]
Merge "[audioencoder] Fix bug - codec data is missed, so memory leak is happened and muxed file can not be played" into tizen

8 years ago[audioencoder] Fix bug - codec data is missed, so memory leak is happened and muxed... 33/62533/1
Jeongmo Yang [Wed, 16 Mar 2016 11:12:42 +0000 (20:12 +0900)]
[audioencoder] Fix bug - codec data is missed, so memory leak is happened and muxed file can not be played

Change-Id: I561f9e2aa391af4b0f91eff89b621e0395bcb638
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
8 years agoRemoved jpeg2000 and added aacpsdsp object due to undefined problem 75/61475/2 accepted/tizen/common/20160308.143547 accepted/tizen/ivi/20160308.102848 accepted/tizen/mobile/20160308.102755 accepted/tizen/tv/20160308.102813 accepted/tizen/wearable/20160308.102830 submit/tizen/20160308.084805
Sejun Park [Tue, 8 Mar 2016 06:40:52 +0000 (15:40 +0900)]
Removed jpeg2000 and added aacpsdsp object due to undefined problem

Change-Id: Ia33474fbf982f6f714a5fa7b30e2f10c661a7813

8 years agoDisable avdemux_mm 78/58478/2 accepted/tizen/ivi/20160218.024820 accepted/tizen/mobile/20160202.113512 accepted/tizen/tv/20160202.113549 accepted/tizen/wearable/20160202.113626 submit/tizen/20160201.105528 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000005
Gilbok Lee [Mon, 1 Feb 2016 10:49:35 +0000 (19:49 +0900)]
Disable avdemux_mm
Fixed TSAM-888 issue (some wav file occur crash in avdemux_mm during check gst_type_find_helper_for_data)

Change-Id: Iee35bbe2695e7f1b5f68474de01d52fcb9fa51fd
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
8 years ago[avmux] Support expected-trailer-size for size limit recording 81/57481/1 accepted/tizen/mobile/20160122.034322 accepted/tizen/tv/20160122.034345 accepted/tizen/wearable/20160122.034357 submit/tizen/20160121.083926
Jeongmo Yang [Wed, 20 Jan 2016 10:44:13 +0000 (19:44 +0900)]
[avmux] Support expected-trailer-size for size limit recording

Change-Id: Ifb03766b8376c67821f6a5281c4bc8f5a446b637
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
8 years ago[avmux] Support H263P in avmux_3gp, Support MPEG4 in avmux_mp4 03/56703/1 accepted/tizen/mobile/20160112.224317 accepted/tizen/tv/20160112.224331 accepted/tizen/wearable/20160112.224352 submit/tizen/20160112.094141
Jeongmo Yang [Tue, 12 Jan 2016 06:59:38 +0000 (15:59 +0900)]
[avmux] Support H263P in avmux_3gp, Support MPEG4 in avmux_mp4

Change-Id: If50889ba55de108930185c79325bf1382e6127a5
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
8 years agoAdd manifest file and change spec license name 71/55771/1 accepted/tizen/mobile/20151229.115613 accepted/tizen/tv/20151229.115634 accepted/tizen/wearable/20151229.115711 submit/tizen/20151229.082324
Gilbok Lee [Tue, 29 Dec 2015 07:44:57 +0000 (16:44 +0900)]
Add manifest file and change spec license name

Change-Id: I98fdc60b63645e0cfa1ea2971da5b2b839b7732b
Signed-off-by: Gilbok Lee <gilbok.lee@samsung.com>
8 years agomodify spec to build and merge prev modification 17/52717/2 submit/tizen/20151127.020604 submit/tizen/20151127.065352 submit/tizen/20151201.024149 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Eunhae Choi [Thu, 26 Nov 2015 07:03:02 +0000 (16:03 +0900)]
modify spec to build and merge prev modification

Change-Id: I451dcbc3fd1a087e6a285912e54b101255f018f7

8 years agoMerge remote-tracking branch 'remotes/origin/upstream/1.6' into tizen 16/52716/1
Eunhae Choi [Thu, 26 Nov 2015 06:53:16 +0000 (15:53 +0900)]
Merge remote-tracking branch 'remotes/origin/upstream/1.6' into tizen

Change-Id: Icbc3ed06d3013f0fc90012686043c632f39d328d

8 years agoavvidenc: Fix frame memory leak upstream/1.6
Vineeth TM [Mon, 2 Nov 2015 01:00:55 +0000 (10:00 +0900)]
avvidenc: Fix frame memory leak

The frame being passed to handle_frame should be unref'ed in all cases

https://bugzilla.gnome.org/show_bug.cgi?id=757453

8 years agoavdemux: Fix string memory leaks
Vineeth TM [Mon, 2 Nov 2015 01:20:02 +0000 (10:20 +0900)]
avdemux: Fix string memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=757454

8 years agoRelease 1.6.1 1.6.1
Sebastian Dröge [Fri, 30 Oct 2015 15:00:35 +0000 (17:00 +0200)]
Release 1.6.1

8 years agoavviddec: Fix bufferpool config double free by taking a copy as needed
Sebastian Dröge [Fri, 16 Oct 2015 15:52:57 +0000 (18:52 +0300)]
avviddec: Fix bufferpool config double free by taking a copy as needed

Also free the config in two code paths where we leaked it before.

8 years agolibav: Update to n2.8.1
Sebastian Dröge [Wed, 14 Oct 2015 07:18:01 +0000 (10:18 +0300)]
libav: Update to n2.8.1

8 years agoavviddec: only free config when pool doesn't take ownership
Luis de Bethencourt [Tue, 13 Oct 2015 13:28:44 +0000 (14:28 +0100)]
avviddec: only free config when pool doesn't take ownership

Since gst_buffer_pool_set_config() takes ownership of the config structure,
it is only necessary to free the structure before using it when the true
branch of if (gst_buffer_pool_config_validate_params) hasn't run.

gst_buffer_pool_set_config() always takes ownership of the structure
regardless of success or failure. Which means the return, checked with
if (!working_pool), has no relation to the state of the structure.

CID #1320708

8 years agoavcodecmap: Don't allocate dummy codec data anymore, it causes crashes nowadays
Sebastian Dröge [Sat, 3 Oct 2015 17:25:35 +0000 (18:25 +0100)]
avcodecmap: Don't allocate dummy codec data anymore, it causes crashes nowadays

Multithreaded encoders are going to free this dummy codec data twice, e.g.
with this pipeline
  gst-launch-1.0 videotestsrc num-buffers=40 ! \
    videoconvert ! avenc_mjpeg ! fakesink

8 years agoavvidenc: Pass the correct user_data to gst_buffer_new_wrapped_full()
Sebastian Dröge [Sat, 3 Oct 2015 17:14:05 +0000 (18:14 +0100)]
avvidenc: Pass the correct user_data to gst_buffer_new_wrapped_full()

Fixes crash with e.g.

  gst-launch-1.0 videotestsrc num-buffers=40 ! \
    videoconvert ! avenc_huffyuv ! fakesink

8 years agoRelease 1.6.0 1.6.0
Sebastian Dröge [Fri, 25 Sep 2015 21:32:21 +0000 (23:32 +0200)]
Release 1.6.0

8 years agoRelease 1.5.91
Sebastian Dröge [Fri, 18 Sep 2015 18:10:32 +0000 (20:10 +0200)]
Release 1.5.91

8 years agoavvidec: increase default alignment to 32 bytes
Tim-Philipp Müller [Fri, 28 Aug 2015 08:38:53 +0000 (09:38 +0100)]
avvidec: increase default alignment to 32 bytes

Change default alignment from 16 to 32 bytes, which fixes crashes
when decoding H.265 using AVX2-based decoder code paths and when
using ximagesink/glimagesink.

https://bugzilla.gnome.org/show_bug.cgi?id=754120

8 years agoavvideodec: ensure required mem alignment fixing avdec_h265 crashes with ximagesink...
Tim-Philipp Müller [Fri, 11 Sep 2015 22:19:21 +0000 (23:19 +0100)]
avvideodec: ensure required mem alignment fixing avdec_h265 crashes with ximagesink/glimagesink

Make sure the alignment requirement in GstAllocationParams
matches the GstVideoAlignment requirements. This fixes
issues with avdec_h265 crashing in the avx2 code path when
used with playbin and ximagesink/glimagesink as videosink.

The internal video pool would allocate buffers with an
alignment of 15 even though GstVideoAlignment specified
a stride_align requirement of 31 (which comes from ffmpeg).

https://bugzilla.gnome.org/show_bug.cgi?id=754120

8 years agolibav: Update to ffmpeg n2.8
Sebastian Dröge [Sat, 12 Sep 2015 12:06:10 +0000 (14:06 +0200)]
libav: Update to ffmpeg n2.8

https://bugzilla.gnome.org/show_bug.cgi?id=754920

8 years agoavvid/audenc: Set some tags in the output for downstream's info
Jan Schmidt [Wed, 29 Jul 2015 15:24:54 +0000 (01:24 +1000)]
avvid/audenc: Set some tags in the output for downstream's info

Add the codec name and bitrate into the output for informational
purposes. Bitrate in particular is now used by flvmux to set
videodatarate and audiodatarate in the resulting stream

8 years agoavviddec: Fix pool reallocation logic
Nicolas Dufresne [Thu, 20 Aug 2015 15:02:11 +0000 (08:02 -0700)]
avviddec: Fix pool reallocation logic

Some check where incorect and also unsafe. The only reliable information
in get_buffer2 is the picture width/height really. The side effect is
that the width/height of the internal pool endup padded, so when we
switch we also need to switch to the a new width/height, hence we save
the pool info.

https://bugzilla.gnome.org/show_bug.cgi?id=753869

8 years agoRelease 1.5.90
Sebastian Dröge [Wed, 19 Aug 2015 11:12:35 +0000 (14:12 +0300)]
Release 1.5.90

8 years agoaviddec: Re-enable direct rendering
Nicolas Dufresne [Sun, 16 Aug 2015 17:08:16 +0000 (19:08 +0200)]
aviddec: Re-enable direct rendering

This is achieved by using a tempory internal pool. We can then switch to a
downstream pool if the downstream pool buffer have matching strides.

https://bugzilla.gnome.org/show_bug.cgi?id=752802

8 years agoavvidenc: use template subset check for accept-caps
Thiago Santos [Mon, 17 Aug 2015 07:36:39 +0000 (04:36 -0300)]
avvidenc: use template subset check for accept-caps

It is faster than doing a query that propagates downstream and
should be enough

8 years agoavaudenc: use pad template caps for accept-caps
Thiago Santos [Mon, 17 Aug 2015 07:35:41 +0000 (04:35 -0300)]
avaudenc: use pad template caps for accept-caps

use template subset check for accept-caps

It is faster than doing a query that propagates downstream and
should be enough

8 years agoavaudenc: remove useless getcaps method
Thiago Santos [Sun, 16 Aug 2015 17:14:27 +0000 (14:14 -0300)]
avaudenc: remove useless getcaps method

It just calls the exact same function as the default handler

8 years agoavvidenc: remove useless getcaps method
Thiago Santos [Sun, 16 Aug 2015 17:13:05 +0000 (14:13 -0300)]
avvidenc: remove useless getcaps method

It just calls the exact same function as the default handler

8 years agoavauddec: let audiodecoder call the default pad query handler
Thiago Santos [Sat, 15 Aug 2015 10:30:26 +0000 (07:30 -0300)]
avauddec: let audiodecoder call the default pad query handler

Avoids repeating the same handling in many decoders

8 years agoavviddec: let videodecoder call the default pad query handler
Thiago Santos [Sat, 15 Aug 2015 10:18:07 +0000 (07:18 -0300)]
avviddec: let videodecoder call the default pad query handler

Avoids repeating the same handling in many decoders

8 years agolibav: Update to n2.7.2
Sebastian Dröge [Sat, 15 Aug 2015 10:51:19 +0000 (12:51 +0200)]
libav: Update to n2.7.2

8 years agoavviddec: use template caps intersection for accept-caps
Thiago Santos [Fri, 14 Aug 2015 11:22:39 +0000 (08:22 -0300)]
avviddec: use template caps intersection for accept-caps

Avoid doing downstream caps queries when accept-caps should just
do a shallow caps check on the element itself

https://bugzilla.gnome.org/show_bug.cgi?id=753623

8 years agoavauddec: use template caps intersection for accept-caps
Thiago Santos [Fri, 14 Aug 2015 11:21:51 +0000 (08:21 -0300)]
avauddec: use template caps intersection for accept-caps

Avoid doing downstream caps queries when accept-caps should just
do a shallow caps check on the element itself

https://bugzilla.gnome.org/show_bug.cgi?id=753623

8 years agoMap ffmpeg metadata to GStreamer tags
Jan Schmidt [Thu, 30 Jul 2015 13:07:39 +0000 (23:07 +1000)]
Map ffmpeg metadata to GStreamer tags

Update to the metadata API ffmpeg has had in
place for a long time now, and reenable output
of GStreamer tags from the demuxer.

https://bugzilla.gnome.org/show_bug.cgi?id=566605

8 years agoavviddec: Remove unused force parameter
Olivier Crête [Tue, 28 Jul 2015 21:54:23 +0000 (17:54 -0400)]
avviddec: Remove unused force parameter

This parameter has been always false for a long time.

8 years agoavviddec: Use caps-like size in get_buffer2()
Olivier Crête [Tue, 4 Aug 2015 01:40:12 +0000 (21:40 -0400)]
avviddec: Use caps-like size in get_buffer2()

The size in the AVFrame in get_buffer2 don't match the output size,
instead they match ffmpeg's memory requirements, so we can't compare
them from the values of the output AVFrame. Those are comparable to
the values in the passed AVCodecContext.

8 years agoavviddec: Reset current_dr on close and when not chosing it
Olivier Crête [Tue, 4 Aug 2015 01:02:37 +0000 (21:02 -0400)]
avviddec: Reset current_dr on close and when not chosing it

https://bugzilla.gnome.org/show_bug.cgi?id=753189

8 years agoavviddec: Disable direct rendering before a frame has been produces
Olivier Crête [Tue, 28 Jul 2015 20:16:10 +0000 (16:16 -0400)]
avviddec: Disable direct rendering before a frame has been produces

ffmpeg doesn't provide the final's image width & height in the get_buffer2()
callback, so it's not possible to create an output state for GstVideoDecoder
at this stage. So only try to do direct rendering if the buffer pool has already
been negotiated based on the final decoded size.

This partially reverts the effects of 2e621f8db

https://bugzilla.gnome.org/show_bug.cgi?id=752802

8 years agoRevert "For static builds, add the ffmpeg library directories to the linker flags"
Sebastian Dröge [Tue, 28 Jul 2015 08:19:52 +0000 (11:19 +0300)]
Revert "For static builds, add the ffmpeg library directories to the linker flags"

This reverts commit ac3437153dc6cb3d82cdda0d1f60ffc5600fdf67.

Doesn't actually make sense as it will put the (uninstalled) library paths
into the installed .la files. How does this all work?

8 years agoFor static builds, add the ffmpeg library directories to the linker flags
Sebastian Dröge [Tue, 28 Jul 2015 08:02:47 +0000 (11:02 +0300)]
For static builds, add the ffmpeg library directories to the linker flags

8 years agoavviddec: Get code out of loop
Olivier Crête [Mon, 27 Jul 2015 22:49:49 +0000 (18:49 -0400)]
avviddec: Get code out of loop

Code was executed only on the first iteration, so just pull it out
of the loop entirely. This makes it clear it has nothing to do with the loop.

8 years agoavviddec: Only create the AVBuffer once the stride is validated
Olivier Crête [Mon, 27 Jul 2015 22:44:53 +0000 (18:44 -0400)]
avviddec: Only create the AVBuffer once the stride is validated

If it is created earlier and the stride is invalid, then the frame
will be freed and it won't be possible to use it in the fallback path.
Not doing this causes a segfault because it will try to use
already freed memory.

8 years agoavviddec: Re-enable direct rendering
Olivier Crête [Mon, 27 Jul 2015 19:29:49 +0000 (15:29 -0400)]
avviddec: Re-enable direct rendering

8 years agoavauddec: Read channels from the channels field
Olivier Crete [Sat, 25 Jul 2015 06:54:20 +0000 (02:54 -0400)]
avauddec: Read channels from the channels field

If there is no layout, just read the channel count from the
channels field.

https://bugzilla.gnome.org/show_bug.cgi?id=752186

8 years agoavviddec: Ignore negotiation error on shutdown
Olivier Crête [Thu, 23 Jul 2015 23:15:43 +0000 (19:15 -0400)]
avviddec: Ignore negotiation error on shutdown

https://bugzilla.gnome.org/show_bug.cgi?id=752800

8 years agoavauddec: Access field using accessors
Olivier Crête [Sat, 25 Jul 2015 07:05:25 +0000 (03:05 -0400)]
avauddec: Access field using accessors

Those fields are documented to only be safe to access using
accessors as their position is not part of the ABI.

8 years agoAdd support for musepack (mpc) sv8 audio
James Smith [Wed, 22 Jul 2015 08:44:27 +0000 (09:44 +0100)]
Add support for musepack (mpc) sv8 audio

https://bugzilla.gnome.org/show_bug.cgi?id=732682

8 years agoavviddec: fix slice_offset memory leak
Vineeth T M [Thu, 16 Jul 2015 09:17:05 +0000 (18:17 +0900)]
avviddec: fix slice_offset memory leak

In case of real videos, slice_offset is being allocated,
but the same is not being freed.

https://bugzilla.gnome.org/show_bug.cgi?id=752404

8 years agoUpdate mailing list in doap file
Tim-Philipp Müller [Thu, 16 Jul 2015 16:24:48 +0000 (17:24 +0100)]
Update mailing list in doap file

8 years agoDisable iconv support to fix Windows build
Sebastian Dröge [Tue, 7 Jul 2015 14:52:49 +0000 (17:52 +0300)]
Disable iconv support to fix Windows build

It's needed only for subtitle charset conversion, and we don't
use the ffmpeg subtitle support anyway.

Also disable d3d11va and dxva2 support, we don't use the hardware
codec support.

8 years agoAutomatic update of common submodule
Stefan Sauer [Fri, 3 Jul 2015 19:59:42 +0000 (21:59 +0200)]
Automatic update of common submodule

From f74b2df to 9aed1d7

8 years agoFix OSX build: Explicitly disable VDA h264 decoder
Heinrich Fink [Thu, 2 Jul 2015 13:44:45 +0000 (15:44 +0200)]
Fix OSX build: Explicitly disable VDA h264 decoder

VideoDecodeAcceleration framework is deprecated in 10.11, and currently
cuases linker errors when compiling on OSX. Oddly, --disable-hwaccels
did not also disable h264_vda already.

https://bugzilla.gnome.org/show_bug.cgi?id=751838

8 years agoMake the LGPL build the default and require --enable-gpl to build a GPL licensed...
Sebastian Dröge [Wed, 1 Jul 2015 20:40:02 +0000 (22:40 +0200)]
Make the LGPL build the default and require --enable-gpl to build a GPL licensed version

8 years agoavmux: Blacklist some subtitle and adaptive streaming muxers
Sebastian Dröge [Wed, 1 Jul 2015 20:11:52 +0000 (22:11 +0200)]
avmux: Blacklist some subtitle and adaptive streaming muxers

8 years agoSwitch from libav v11.4 to ffmpeg n2.7.1
Sebastian Dröge [Tue, 30 Jun 2015 10:05:46 +0000 (12:05 +0200)]
Switch from libav v11.4 to ffmpeg n2.7.1

ffmpeg seems to be the one of the two forks, which is most widely used by
Linux distributions and in general. Also Google is using it for e.g. Chrome
and has engineers working on finding and fixing security issues in it.

https://bugzilla.gnome.org/show_bug.cgi?id=751607

8 years agoavaudenc: Remember how many samples the codec consumed for telling the base class
Sebastian Dröge [Tue, 30 Jun 2015 17:59:54 +0000 (19:59 +0200)]
avaudenc: Remember how many samples the codec consumed for telling the base class

8 years agoavauddec: Ensure input buffers have FF_INPUT_BUFFER_PADDING_SIZE padding, which is...
Thomas Bluemel [Tue, 30 Jun 2015 17:18:53 +0000 (19:18 +0200)]
avauddec: Ensure input buffers have FF_INPUT_BUFFER_PADDING_SIZE padding, which is required by avcodec_decode_audio4 ()

8 years agoavmux: Ignore stream_segment,ssegment muxer that is provided by ffmpeg
Sebastian Dröge [Mon, 29 Jun 2015 11:29:05 +0000 (13:29 +0200)]
avmux: Ignore stream_segment,ssegment muxer that is provided by ffmpeg

The comma confuses our code, e.g. it's not a valid element name or structure
name.

8 years agoavvidenc: Fix compiler warning
Sebastian Dröge [Sun, 28 Jun 2015 14:54:35 +0000 (16:54 +0200)]
avvidenc: Fix compiler warning

gstavvidenc.c: In function 'gst_ffmpegvidenc_flush_buffers':
gstavvidenc.c:733:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
       GstFFMpegVidEncClass *oclass =
       ^
cc1: all warnings being treated as errors

8 years agoavvidenc: Set AVFrame flags for interlacing per frame and not in set_format()
Sebastian Dröge [Sun, 28 Jun 2015 14:35:46 +0000 (16:35 +0200)]
avvidenc: Set AVFrame flags for interlacing per frame and not in set_format()

They will get overridden by av_frame_unref() with the defaults.

8 years agoav{aud,vid}enc: Create wrapped output buffers with GST_MEMORY_FLAG_READONLY
Sebastian Dröge [Sun, 28 Jun 2015 14:32:02 +0000 (16:32 +0200)]
av{aud,vid}enc: Create wrapped output buffers with GST_MEMORY_FLAG_READONLY

libav might still have references to the buffers itself and uses a writability
system similar to ours based on reference counts.

8 years agoavvidenc: Properly wrap and free the output AVPackets generated during draining
Sebastian Dröge [Sun, 28 Jun 2015 14:30:54 +0000 (16:30 +0200)]
avvidenc: Properly wrap and free the output AVPackets generated during draining

8 years agoavvidenc: Make sure to keep input data alive until libav is done with it
Sebastian Dröge [Sun, 28 Jun 2015 14:27:52 +0000 (16:27 +0200)]
avvidenc: Make sure to keep input data alive until libav is done with it

8 years agoavaudenc: Make sure to keep input data alive until libav is done with it
Sebastian Dröge [Sun, 28 Jun 2015 14:21:33 +0000 (16:21 +0200)]
avaudenc: Make sure to keep input data alive until libav is done with it

8 years agoav{aud,vid}enc: Stop using deprecated AVFrame APIs
Sebastian Dröge [Sun, 28 Jun 2015 13:37:23 +0000 (15:37 +0200)]
av{aud,vid}enc: Stop using deprecated AVFrame APIs

8 years agoavauddec: Remove custom buffer allocation function
Sebastian Dröge [Sun, 28 Jun 2015 10:33:49 +0000 (12:33 +0200)]
avauddec: Remove custom buffer allocation function

libav always uses planar audio formats nowadays, not much use in
us trying to allocate anything here until we add support for planar
aka non-interleaved audio formats at least in audioconvert.

8 years agoavauddec: Use undeprecated AVFrame API
Sebastian Dröge [Sat, 27 Jun 2015 18:25:36 +0000 (20:25 +0200)]
avauddec: Use undeprecated AVFrame API

8 years agoavviddec: Free frame before the codec is freed
Sebastian Dröge [Sat, 27 Jun 2015 18:25:18 +0000 (20:25 +0200)]
avviddec: Free frame before the codec is freed

Who knows, maybe freeing the frame calls cleanup inside the codec.

8 years agoavviddec: Use undeprecated AVFrame API and unref frame once we're done with it
Sebastian Dröge [Sat, 27 Jun 2015 18:15:20 +0000 (20:15 +0200)]
avviddec: Use undeprecated AVFrame API and unref frame once we're done with it

8 years agoavauddec: Negotiate based on the AVFrame instead of just the AVCodecContext
Sebastian Dröge [Sat, 27 Jun 2015 18:08:46 +0000 (20:08 +0200)]
avauddec: Negotiate based on the AVFrame instead of just the AVCodecContext

8 years agoavviddec: Use the new get_buffer2() API instead of the deprecated APIs
Sebastian Dröge [Fri, 26 Jun 2015 18:38:01 +0000 (20:38 +0200)]
avviddec: Use the new get_buffer2() API instead of the deprecated APIs

And do the frame reference counting by adding AVBufferRefs to the frame.

8 years agoavviddec: Also proxy the data/size pointers for our wrapper AVBufferRef
Sebastian Dröge [Fri, 26 Jun 2015 18:20:14 +0000 (20:20 +0200)]
avviddec: Also proxy the data/size pointers for our wrapper AVBufferRef

8 years agocodecmap: add vp9 mapping
Wim Taymans [Fri, 26 Jun 2015 15:30:25 +0000 (17:30 +0200)]
codecmap: add vp9 mapping

8 years agoavviddec: Wrap the original AVBufferRef in our own buffer for the destroy function
Sebastian Dröge [Fri, 26 Jun 2015 14:50:16 +0000 (16:50 +0200)]
avviddec: Wrap the original AVBufferRef in our own buffer for the destroy function

Just adding a dummy buffer at the very end might not be enough as there
already might be too many buffers.

8 years agoavviddec: libav will already copy the reordered_opaque pointer for us
Sebastian Dröge [Fri, 26 Jun 2015 13:38:38 +0000 (15:38 +0200)]
avviddec: libav will already copy the reordered_opaque pointer for us

If we do it ourselves, it might get the wrong value if our assumptions are
broken by libav at a later time.

8 years agoavviddec: Negotiate based on the AVFrame information, not the context information
Sebastian Dröge [Fri, 26 Jun 2015 13:34:30 +0000 (15:34 +0200)]
avviddec: Negotiate based on the AVFrame information, not the context information

The context contains the information from the latest input frame, we're
however interested in the information from the latest output frame. As we have
to negotiate for the buffer that is about to come next.

This should fix some crashes that happened when both information got out of
sync. If that happens now, we will do fallback allocation until the output
is renegotiated too.

https://bugzilla.gnome.org/show_bug.cgi?id=750865

8 years agoBack to development
Sebastian Dröge [Wed, 24 Jun 2015 22:04:23 +0000 (00:04 +0200)]
Back to development

8 years agoRelease 1.5.2
Sebastian Dröge [Wed, 24 Jun 2015 21:40:51 +0000 (23:40 +0200)]
Release 1.5.2

8 years agoAutomatic update of common submodule
Nicolas Dufresne [Tue, 16 Jun 2015 21:50:03 +0000 (17:50 -0400)]
Automatic update of common submodule

From 6015d26 to f74b2df

9 years agoavcodec: Check against codec format list
Nicolas Dufresne [Thu, 4 Jun 2015 23:11:02 +0000 (19:11 -0400)]
avcodec: Check against codec format list

There exist few formats (deprecated though) used by mjpeg decoder
and encoder that maps to the same GStreamer format. To properly
pick the right format, also lookup each Codec list before accepting
the format. This fixes error when trying to use mjpeg encoder.

Note that this may results in faded colors. In fact, these special
format are meant to specify that this is full range YUV. Colorimetry
in gst-libav is not yet implemented, hence is ignored in general. So
I think it's fine to first fix the issue before addressing the missing
feature.

https://bugzilla.gnome.org/show_bug.cgi?id=750398

9 years agoviddec: Replicate any 3D/multiview info from input caps onto output
Jan Schmidt [Tue, 7 Oct 2014 05:33:07 +0000 (16:33 +1100)]
viddec: Replicate any 3D/multiview info from input caps onto output

9 years agocruft: add the obsolete tmpl dir to cruft-dirs
Stefan Sauer [Tue, 9 Jun 2015 13:41:46 +0000 (15:41 +0200)]
cruft: add the obsolete tmpl dir to cruft-dirs

9 years agoAutomatic update of common submodule
Edward Hervey [Tue, 9 Jun 2015 09:30:44 +0000 (11:30 +0200)]
Automatic update of common submodule

From d9a3353 to 6015d26

9 years agoAutomatic update of common submodule
Stefan Sauer [Mon, 8 Jun 2015 21:08:20 +0000 (23:08 +0200)]
Automatic update of common submodule

From d37af32 to d9a3353

9 years agoAutomatic update of common submodule
Stefan Sauer [Sun, 7 Jun 2015 21:06:58 +0000 (23:06 +0200)]
Automatic update of common submodule

From 21ba2e5 to d37af32

9 years agoAutomatic update of common submodule
Stefan Sauer [Sun, 7 Jun 2015 15:32:20 +0000 (17:32 +0200)]
Automatic update of common submodule

From c408583 to 21ba2e5

9 years agodocs: remove variables that we define in the snippet from common
Stefan Sauer [Sun, 7 Jun 2015 15:03:46 +0000 (17:03 +0200)]
docs: remove variables that we define in the snippet from common

This is syncing our Makefile.am with upstream gtkdoc.