[FFmpeg-devel] [PATCH 0/7] add AVFormatContext->url to replace the length limited filename field

Marton Balint cus at passwd.hu
Mon Jan 29 00:28:29 EET 2018


On Sun, 21 Jan 2018, Marton Balint wrote:

> Here is a rebased version of the patch series on top of the current git master,
> if I get no further comments, I will apply this in a week.
>
> The conversion was mostly straightforward, but there were some cases where it
> needed additional work, so I'd really appriciate if someone could test at least
> the HLS changes.
>
> The patch series does not remove all fixed-length buffers used for filenames
> all around the codebase, that is for later.
>
> Marton Balint (7):
>  avformat/hlsenc: use av_bprintf without buffer limit in
>    replace_int_data_in_filename
>  avformat: add url field to AVFormatContext
>  fftools, tools, examples: migrate to AVFormatContext->url
>  avdevice: migrate to AVFormatContext->url
>  avformat/hls: migrate to AVFormatContext->url
>  avformat: migrate to AVFormatContext->url
>  avformat: deprecate AVFormatContext filename field
>
> doc/APIchanges                   |   7 ++
> doc/examples/transcode_aac.c     |   7 +-
> fftools/ffmpeg.c                 |  16 +--
> fftools/ffmpeg_opt.c             |   8 +-
> fftools/ffplay.c                 |   6 +-
> fftools/ffprobe.c                |   2 +-
> libavdevice/alsa.c               |   4 +-
> libavdevice/avfoundation.m       |   2 +-
> libavdevice/bktr.c               |   2 +-
> libavdevice/caca.c               |   2 +-
> libavdevice/decklink_common.cpp  |   2 +-
> libavdevice/decklink_dec.cpp     |   4 +-
> libavdevice/decklink_enc.cpp     |   4 +-
> libavdevice/dshow.c              |   2 +-
> libavdevice/fbdev_dec.c          |   4 +-
> libavdevice/fbdev_enc.c          |   4 +-
> libavdevice/gdigrab.c            |   2 +-
> libavdevice/iec61883.c           |   8 +-
> libavdevice/jack.c               |   6 +-
> libavdevice/lavfi.c              |   2 +-
> libavdevice/libcdio.c            |   6 +-
> libavdevice/libndi_newtek_dec.c  |   2 +-
> libavdevice/libndi_newtek_enc.c  |   4 +-
> libavdevice/openal-dec.c         |   2 +-
> libavdevice/opengl_enc.c         |   2 +-
> libavdevice/oss_dec.c            |   2 +-
> libavdevice/oss_enc.c            |   2 +-
> libavdevice/pulse_audio_dec.c    |   4 +-
> libavdevice/pulse_audio_enc.c    |   4 +-
> libavdevice/sdl2.c               |   2 +-
> libavdevice/sndio_dec.c          |   2 +-
> libavdevice/sndio_enc.c          |   2 +-
> libavdevice/v4l2.c               |  16 +--
> libavdevice/v4l2enc.c            |   4 +-
> libavdevice/vfwcap.c             |   4 +-
> libavdevice/xcbgrab.c            |   8 +-
> libavdevice/xv.c                 |   2 +-
> libavformat/avformat.h           |  20 ++++
> libavformat/concatdec.c          |   4 +-
> libavformat/dashenc.c            |  16 +--
> libavformat/fifo.c               |   8 +-
> libavformat/flvenc.c             |   4 +-
> libavformat/gxfenc.c             |   4 +-
> libavformat/hdsenc.c             |  24 ++--
> libavformat/hls.c                |   4 +-
> libavformat/hlsenc.c             | 245 +++++++++++++++++++++------------------
> libavformat/img2dec.c            |   4 +-
> libavformat/img2enc.c            |   4 +-
> libavformat/internal.h           |   7 ++
> libavformat/matroskadec.c        |   4 +-
> libavformat/mlvdec.c             |   4 +-
> libavformat/mov.c                |   2 +-
> libavformat/movenc.c             |  10 +-
> libavformat/mpeg.c               |   4 +-
> libavformat/mpegtsenc.c          |   2 +-
> libavformat/mux.c                |  21 +++-
> libavformat/options.c            |   2 +-
> libavformat/rtsp.c               |  18 ++-
> libavformat/rtspdec.c            |   4 +-
> libavformat/rtspenc.c            |   4 +-
> libavformat/sapdec.c             |   2 +-
> libavformat/sapenc.c             |  10 +-
> libavformat/sdp.c                |   4 +-
> libavformat/segment.c            |  36 +++---
> libavformat/smoothstreamingenc.c |  12 +-
> libavformat/tee.c                |   4 +-
> libavformat/utils.c              |  24 +++-
> libavformat/version.h            |   5 +-
> libavformat/webm_chunk.c         |  10 +-
> tools/uncoded_frame.c            |   2 +-
> 70 files changed, 409 insertions(+), 281 deletions(-)
>

Pushed.

Regards,
Marton


More information about the ffmpeg-devel mailing list