[FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file, added av_frame_make_writable() check)

2017-03-29 Thread Paolo Prete
--- doc/examples/Makefile | 1 + doc/examples/encode_raw_audio_file_to_aac.c | 307 2 files changed, 308 insertions(+) create mode 100644 doc/examples/encode_raw_audio_file_to_aac.c diff --git a/doc/examples/Makefile b/doc/examples/Makefile in

Re: [FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file)

2017-03-29 Thread Paolo Prete
Il Giovedì 30 Marzo 2017 1:43, Paolo Prete ha scritto: The next patch I'm going to post adds a check with av_frame_make_writable(), as suggested by wm4. However, I see that the same function is used only by muxing.c in the examples folder, and it's not clear which kind of error could it ra

[FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file)

2017-03-29 Thread Paolo Prete
--- doc/examples/Makefile | 1 + doc/examples/encode_raw_audio_file_to_aac.c | 300 2 files changed, 301 insertions(+) create mode 100644 doc/examples/encode_raw_audio_file_to_aac.c diff --git a/doc/examples/Makefile b/doc/examples/Makefile in

Re: [FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file)

2017-03-29 Thread Paolo Prete
Sorry, the previous patch contains few typo errors. See the next one. Il Giovedì 30 Marzo 2017 1:00, Paolo Prete ha scritto: --- doc/examples/Makefile                      |  1 + doc/examples/encode_raw_audio_file_to_aac.c | 300 2 files changed, 301 inser

[FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file)

2017-03-29 Thread Paolo Prete
--- doc/examples/Makefile | 1 + doc/examples/encode_raw_audio_file_to_aac.c | 300 2 files changed, 301 insertions(+) create mode 100644 doc/examples/encode_raw_audio_file_to_aac.c diff --git a/doc/examples/Makefile b/doc/examples/Makefile in

Re: [FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file)

2017-03-29 Thread Paolo Prete
Il Mercoledì 29 Marzo 2017 11:58, wm4 ha scritto: > There are vague plans of disallowing stack allocation of AVPackets by> > removing sizeof(AVPacket) from the ABI (like AVFrame etc.), so it might> be > better to allocate the packet with the appropriate functions. Done. (see next patch)

Re: [FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file)

2017-03-29 Thread wm4
On Tue, 28 Mar 2017 22:58:18 +0200 Paolo Prete wrote: > --- > doc/examples/Makefile | 1 + > doc/examples/encode_raw_audio_file_to_aac.c | 275 > > 2 files changed, 276 insertions(+) > create mode 100644 doc/examples/encode_raw_audio_file_to

[FFmpeg-devel] [PATCH] new API usage example (adts-aac encoding from raw audio file)

2017-03-28 Thread Paolo Prete
--- doc/examples/Makefile | 1 + doc/examples/encode_raw_audio_file_to_aac.c | 275 2 files changed, 276 insertions(+) create mode 100644 doc/examples/encode_raw_audio_file_to_aac.c diff --git a/doc/examples/Makefile b/doc/examples/Makefile in