[FFmpeg-devel] [PATCH] mmaldec: Fix avpriv_atomic_get usage

2015-10-21 Thread Julian Scheel
There is no avpriv_atomic_get, instead avpriv_atomic_int_get is to be used for integers. This fixes building mmaldec. Signed-off-by: Julian Scheel --- libavcodec/mmaldec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index

[FFmpeg-devel] [PATCH] mmaldec: Set the output pix_fmt after detecting format

2015-10-21 Thread Julian Scheel
Wait for the first decoded frame to be returned by mmal before setting pix_fmt. This is important for avformat probing to work properly as it is one of the criterions to decide whether to decode a frame or not for probing. Signed-off-by: Julian Scheel --- libavcodec/mmaldec.c | 10 +- 1

[FFmpeg-devel] [PATCH] mmaldec: Add mpeg2 decoding support

2015-10-21 Thread Julian Scheel
Register mmaldec as mpeg2 decoder. Supporting mpeg2 in mmaldec is just a matter of setting the correct MMAL_ENCODING on the input port. To ease the addition of further supported mmal codecs a macro is introduced to generate the decoder and decoder class structs. Signed-off-by: Julian Scheel

Re: [FFmpeg-devel] [PATCH] mmaldec: Add mpeg2 decoding support

2015-10-21 Thread Julian Scheel
Am 21.10.2015 um 16:09 schrieb Hendrik Leppkes: On Wed, Oct 21, 2015 at 3:54 PM, Julian Scheel wrote: Register mmaldec as mpeg2 decoder. Supporting mpeg2 in mmaldec is just a matter of setting the correct MMAL_ENCODING on the input port. To ease the addition of further supported mmal codecs a

Re: [FFmpeg-devel] [PATCH] mmaldec: Set the output pix_fmt after detecting format

2015-10-21 Thread Julian Scheel
Am 21.10.2015 um 16:18 schrieb wm4: On Wed, 21 Oct 2015 16:07:08 +0200 Hendrik Leppkes wrote: On Wed, Oct 21, 2015 at 3:55 PM, Julian Scheel wrote: Wait for the first decoded frame to be returned by mmal before setting pix_fmt. This is important for avformat probing to work properly as it

[FFmpeg-devel] [PATCHv2] mmaldec: Add mpeg2 decoding support

2015-10-21 Thread Julian Scheel
Register mmaldec as mpeg2 decoder. Supporting mpeg2 in mmaldec is just a matter of setting the correct MMAL_ENCODING on the input port. To ease the addition of further supported mmal codecs a macro is introduced to generate the decoder and decoder class structs. Signed-off-by: Julian Scheel

Re: [FFmpeg-devel] [PATCH] mmaldec: Set the output pix_fmt after detecting format

2015-10-21 Thread Julian Scheel
Am 21.10.2015 um 17:24 schrieb wm4: On Wed, 21 Oct 2015 17:15:14 +0200 Julian Scheel wrote: Am 21.10.2015 um 16:18 schrieb wm4: On Wed, 21 Oct 2015 16:07:08 +0200 Hendrik Leppkes wrote: On Wed, Oct 21, 2015 at 3:55 PM, Julian Scheel wrote: Wait for the first decoded frame to be returned

Re: [FFmpeg-devel] [PATCH] mmaldec: Set the output pix_fmt after detecting format

2015-10-21 Thread Julian Scheel
On 21.10.15 19:11, wm4 wrote: On Wed, 21 Oct 2015 18:48:42 +0200 Julian Scheel wrote: Am 21.10.2015 um 17:24 schrieb wm4: On Wed, 21 Oct 2015 17:15:14 +0200 Julian Scheel wrote: Am 21.10.2015 um 16:18 schrieb wm4: On Wed, 21 Oct 2015 16:07:08 +0200 Hendrik Leppkes wrote: On Wed, Oct