From 70d71b58018e640a09a4d919993766a2050cef8d Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sat, 28 Jul 2012 12:57:05 -0400 Subject: [PATCH 01/12] af_asyncts: add first_pts option This allows for padding/trimming at the start of stream. By default, no assumption is made about the first frame's expected pts, so no padding or trimming is done. --- doc/filters.texi | 7 +++++++ libavfilter/af_asyncts.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index d3543b39c05c6..58a690309aacc 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -205,6 +205,13 @@ adding/dropping samples. @item max_comp Maximum compensation in samples per second. +@item first_pts +Assume the first pts should be this value. +This allows for padding/trimming at the start of stream. By default, no +assumption is made about the first frame's expected pts, so no padding or +trimming is done. For example, this could be set to 0 to pad the beginning with +silence if an audio stream starts after the video stream. + @end table @section channelsplit diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index 4052fbdce74d9..5a12a6f6da28c 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -49,6 +49,7 @@ static const AVOption options[] = { { "min_delta", "Minimum difference between timestamps and audio data " "(in seconds) to trigger padding/trimmin the data.", OFFSET(min_delta_sec), AV_OPT_TYPE_FLOAT, { 0.1 }, 0, INT_MAX, A }, { "max_comp", "Maximum compensation in samples per second.", OFFSET(max_comp), AV_OPT_TYPE_INT, { 500 }, 0, INT_MAX, A }, + { "first_pts", "Assume the first pts should be this value.", OFFSET(pts), AV_OPT_TYPE_INT64, { AV_NOPTS_VALUE }, INT64_MIN, INT64_MAX, A }, { NULL }, }; @@ -73,8 +74,6 @@ static int init(AVFilterContext *ctx, const char *args) } av_opt_free(s); - s->pts = AV_NOPTS_VALUE; - return 0; } From be51e589cdf84d75e865cec31e722a36332a64f9 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sat, 28 Jul 2012 13:12:38 -0400 Subject: [PATCH 02/12] af_asyncts: avoid overflow in out_size with large delta values --- libavfilter/af_asyncts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index 5a12a6f6da28c..21850dd1d2044 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -186,7 +186,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *buf) if (labs(delta) > s->min_delta) { av_log(ctx, AV_LOG_VERBOSE, "Discontinuity - %"PRId64" samples.\n", delta); - out_size += delta; + out_size = av_clipl_int32((int64_t)out_size + delta); } else { if (s->resample) { int comp = av_clip(delta, -s->max_comp, s->max_comp); From 87cf481aa88b89db8dbbb13dc19c9b4cb35b654a Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 29 Jul 2012 13:20:54 +0100 Subject: [PATCH 03/12] mpegvideo: remove unnecessary inclusions of faandct.h Signed-off-by: Mans Rullgard --- libavcodec/mpegvideo.c | 1 - libavcodec/mpegvideo_common.h | 1 - 2 files changed, 2 deletions(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 574893ed051b2..8b2a27f5e2bdf 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -36,7 +36,6 @@ #include "mpegvideo_common.h" #include "mjpegenc.h" #include "msmpeg4.h" -#include "faandct.h" #include "xvmc_internal.h" #include "thread.h" #include diff --git a/libavcodec/mpegvideo_common.h b/libavcodec/mpegvideo_common.h index 0a731266e2f15..bb39619637cef 100644 --- a/libavcodec/mpegvideo_common.h +++ b/libavcodec/mpegvideo_common.h @@ -36,7 +36,6 @@ #include "mpegvideo.h" #include "mjpegenc.h" #include "msmpeg4.h" -#include "faandct.h" #include int ff_dct_quantize_c(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow); From 591766a3a9c88614b9cb0ed90e25dc6e7d883752 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Fri, 27 Jul 2012 17:00:38 +0100 Subject: [PATCH 04/12] eamad: remove use of MpegEncContext There is no sense in pulling in this monster struct just for a handful of fields. The code does not call any functions expecting an MpegEncContext. Signed-off-by: Mans Rullgard --- libavcodec/eamad.c | 92 +++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index 1daef7e673c35..b738f9458c103 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -42,12 +42,18 @@ #define MADe_TAG MKTAG('M', 'A', 'D', 'e') /* MAD lqp-frame */ typedef struct MadContext { - MpegEncContext s; + AVCodecContext *avctx; + DSPContext dsp; AVFrame frame; AVFrame last_frame; + GetBitContext gb; void *bitstream_buf; unsigned int bitstream_buf_size; DECLARE_ALIGNED(16, DCTELEM, block)[64]; + ScanTable scantable; + uint16_t quant_matrix[64]; + int mb_x; + int mb_y; } MadContext; static void bswap16_buf(uint16_t *dst, const uint16_t *src, int count) @@ -59,14 +65,13 @@ static void bswap16_buf(uint16_t *dst, const uint16_t *src, int count) static av_cold int decode_init(AVCodecContext *avctx) { - MadContext *t = avctx->priv_data; - MpegEncContext *s = &t->s; + MadContext *s = avctx->priv_data; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_YUV420P; if (avctx->idct_algo == FF_IDCT_AUTO) avctx->idct_algo = FF_IDCT_EA; ff_dsputil_init(&s->dsp, avctx); - ff_init_scantable(s->dsp.idct_permutation, &s->intra_scantable, ff_zigzag_direct); + ff_init_scantable(s->dsp.idct_permutation, &s->scantable, ff_zigzag_direct); ff_mpeg12_init_vlcs(); return 0; } @@ -83,13 +88,12 @@ static inline void comp(unsigned char *dst, int dst_stride, static inline void comp_block(MadContext *t, int mb_x, int mb_y, int j, int mv_x, int mv_y, int add) { - MpegEncContext *s = &t->s; if (j < 4) { comp(t->frame.data[0] + (mb_y*16 + ((j&2)<<2))*t->frame.linesize[0] + mb_x*16 + ((j&1)<<3), t->frame.linesize[0], t->last_frame.data[0] + (mb_y*16 + ((j&2)<<2) + mv_y)*t->last_frame.linesize[0] + mb_x*16 + ((j&1)<<3) + mv_x, t->last_frame.linesize[0], add); - } else if (!(s->avctx->flags & CODEC_FLAG_GRAY)) { + } else if (!(t->avctx->flags & CODEC_FLAG_GRAY)) { int index = j - 3; comp(t->frame.data[index] + (mb_y*8)*t->frame.linesize[index] + mb_x * 8, t->frame.linesize[index], @@ -100,26 +104,24 @@ static inline void comp_block(MadContext *t, int mb_x, int mb_y, static inline void idct_put(MadContext *t, DCTELEM *block, int mb_x, int mb_y, int j) { - MpegEncContext *s = &t->s; if (j < 4) { - s->dsp.idct_put( + t->dsp.idct_put( t->frame.data[0] + (mb_y*16 + ((j&2)<<2))*t->frame.linesize[0] + mb_x*16 + ((j&1)<<3), t->frame.linesize[0], block); - } else if (!(s->avctx->flags & CODEC_FLAG_GRAY)) { + } else if (!(t->avctx->flags & CODEC_FLAG_GRAY)) { int index = j - 3; - s->dsp.idct_put( + t->dsp.idct_put( t->frame.data[index] + (mb_y*8)*t->frame.linesize[index] + mb_x*8, t->frame.linesize[index], block); } } -static inline void decode_block_intra(MadContext * t, DCTELEM * block) +static inline void decode_block_intra(MadContext *s, DCTELEM * block) { - MpegEncContext *s = &t->s; int level, i, j, run; RLTable *rl = &ff_rl_mpeg1; - const uint8_t *scantable = s->intra_scantable.permutated; - int16_t *quant_matrix = s->intra_matrix; + const uint8_t *scantable = s->scantable.permutated; + int16_t *quant_matrix = s->quant_matrix; block[0] = (128 + get_sbits(&s->gb, 8)) * quant_matrix[0]; @@ -184,9 +186,8 @@ static int decode_motion(GetBitContext *gb) return value; } -static void decode_mb(MadContext *t, int inter) +static void decode_mb(MadContext *s, int inter) { - MpegEncContext *s = &t->s; int mv_map = 0; int mv_x, mv_y; int j; @@ -205,28 +206,27 @@ static void decode_mb(MadContext *t, int inter) for (j=0; j<6; j++) { if (mv_map & (1<gb); - comp_block(t, s->mb_x, s->mb_y, j, mv_x, mv_y, add); + comp_block(s, s->mb_x, s->mb_y, j, mv_x, mv_y, add); } else { - s->dsp.clear_block(t->block); - decode_block_intra(t, t->block); - idct_put(t, t->block, s->mb_x, s->mb_y, j); + s->dsp.clear_block(s->block); + decode_block_intra(s, s->block); + idct_put(s, s->block, s->mb_x, s->mb_y, j); } } } -static void calc_intra_matrix(MadContext *t, int qscale) +static void calc_quant_matrix(MadContext *s, int qscale) { - MpegEncContext *s = &t->s; int i; if (s->avctx->idct_algo == FF_IDCT_EA) { - s->intra_matrix[0] = (ff_inv_aanscales[0]*ff_mpeg1_default_intra_matrix[0]) >> 11; + s->quant_matrix[0] = (ff_inv_aanscales[0]*ff_mpeg1_default_intra_matrix[0]) >> 11; for (i=1; i<64; i++) - s->intra_matrix[i] = (ff_inv_aanscales[i]*ff_mpeg1_default_intra_matrix[i]*qscale + 32) >> 10; + s->quant_matrix[i] = (ff_inv_aanscales[i]*ff_mpeg1_default_intra_matrix[i]*qscale + 32) >> 10; } else { - s->intra_matrix[0] = ff_mpeg1_default_intra_matrix[0]; + s->quant_matrix[0] = ff_mpeg1_default_intra_matrix[0]; for (i=1; i<64; i++) - s->intra_matrix[i] = (ff_mpeg1_default_intra_matrix[i]*qscale) << 1; + s->quant_matrix[i] = (ff_mpeg1_default_intra_matrix[i]*qscale) << 1; } } @@ -237,8 +237,8 @@ static int decode_frame(AVCodecContext *avctx, const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf+buf_size; - MadContext *t = avctx->priv_data; - MpegEncContext *s = &t->s; + MadContext *s = avctx->priv_data; + int width, height; int chunk_type; int inter; @@ -255,42 +255,42 @@ static int decode_frame(AVCodecContext *avctx, av_reduce(&avctx->time_base.num, &avctx->time_base.den, AV_RL16(&buf[6]), 1000, 1<<30); - s->width = AV_RL16(&buf[8]); - s->height = AV_RL16(&buf[10]); - calc_intra_matrix(t, buf[13]); + width = AV_RL16(&buf[8]); + height = AV_RL16(&buf[10]); + calc_quant_matrix(s, buf[13]); buf += 16; - if (avctx->width != s->width || avctx->height != s->height) { - if (av_image_check_size(s->width, s->height, 0, avctx) < 0) + if (avctx->width != width || avctx->height != height) { + if (av_image_check_size(width, height, 0, avctx) < 0) return -1; - avcodec_set_dimensions(avctx, s->width, s->height); - if (t->frame.data[0]) - avctx->release_buffer(avctx, &t->frame); + avcodec_set_dimensions(avctx, width, height); + if (s->frame.data[0]) + avctx->release_buffer(avctx, &s->frame); } - t->frame.reference = 1; - if (!t->frame.data[0]) { - if (avctx->get_buffer(avctx, &t->frame) < 0) { + s->frame.reference = 1; + if (!s->frame.data[0]) { + if (avctx->get_buffer(avctx, &s->frame) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return -1; } } - av_fast_malloc(&t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); - if (!t->bitstream_buf) + av_fast_malloc(&s->bitstream_buf, &s->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); + if (!s->bitstream_buf) return AVERROR(ENOMEM); - bswap16_buf(t->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2); - init_get_bits(&s->gb, t->bitstream_buf, 8*(buf_end-buf)); + bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2); + init_get_bits(&s->gb, s->bitstream_buf, 8*(buf_end-buf)); for (s->mb_y=0; s->mb_y < (avctx->height+15)/16; s->mb_y++) for (s->mb_x=0; s->mb_x < (avctx->width +15)/16; s->mb_x++) - decode_mb(t, inter); + decode_mb(s, inter); *data_size = sizeof(AVFrame); - *(AVFrame*)data = t->frame; + *(AVFrame*)data = s->frame; if (chunk_type != MADe_TAG) - FFSWAP(AVFrame, t->frame, t->last_frame); + FFSWAP(AVFrame, s->frame, s->last_frame); return buf_size; } From f3eb00834362273dcb1fd3320faa5f8f5a00fb22 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 29 Jul 2012 13:09:10 +0100 Subject: [PATCH 05/12] eamad/eatgq/eatqi: call special EA IDCT directly These decoders use a special non-MPEG2 IDCT. Call it directly instead of going through dsputil. There is never any reason to use a regular IDCT with these decoders or to use the EA IDCT with other codecs. This also fixes the bizarre situation of eamad and eatqi decoding incorrectly if eatgq is disabled. Signed-off-by: Mans Rullgard --- libavcodec/dsputil.c | 3 --- libavcodec/dsputil.h | 3 --- libavcodec/eaidct.c | 1 + libavcodec/eaidct.h | 27 +++++++++++++++++++++++++++ libavcodec/eamad.c | 20 +++++++------------- libavcodec/eatgq.c | 26 +++++++++++--------------- libavcodec/eatqi.c | 28 +++++++++++----------------- 7 files changed, 57 insertions(+), 51 deletions(-) create mode 100644 libavcodec/eaidct.h diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 46232d800ae50..787a46d1eac2b 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2711,9 +2711,6 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx) c->idct_add= ff_faanidct_add; c->idct = ff_faanidct; c->idct_permutation_type= FF_NO_IDCT_PERM; - }else if(CONFIG_EATGQ_DECODER && avctx->idct_algo==FF_IDCT_EA) { - c->idct_put= ff_ea_idct_put_c; - c->idct_permutation_type= FF_NO_IDCT_PERM; }else{ //accurate/default c->idct_put = ff_simple_idct_put_8; c->idct_add = ff_simple_idct_add_8; diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index c3a787c5f3f59..e1b7efc45b882 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -101,9 +101,6 @@ PUTAVG_PIXELS(10) #define ff_put_pixels16x16_c ff_put_pixels16x16_8_c #define ff_avg_pixels16x16_c ff_avg_pixels16x16_8_c -/* EA functions */ -void ff_ea_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block); - /* RV40 functions */ void ff_put_rv40_qpel16_mc33_c(uint8_t *dst, uint8_t *src, int stride); void ff_avg_rv40_qpel16_mc33_c(uint8_t *dst, uint8_t *src, int stride); diff --git a/libavcodec/eaidct.c b/libavcodec/eaidct.c index 9d829c416163d..5e628b09d0d71 100644 --- a/libavcodec/eaidct.c +++ b/libavcodec/eaidct.c @@ -26,6 +26,7 @@ */ #include "dsputil.h" +#include "eaidct.h" #define ASQRT 181 /* (1/sqrt(2))<<8 */ #define A4 669 /* cos(pi/8)*sqrt(2)<<9 */ diff --git a/libavcodec/eaidct.h b/libavcodec/eaidct.h new file mode 100644 index 0000000000000..4c0b5ae16eb0b --- /dev/null +++ b/libavcodec/eaidct.h @@ -0,0 +1,27 @@ +/* + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * Libav is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Libav; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVCODEC_EAIDCT_H +#define AVCODEC_EAIDCT_H + +#include +#include "dsputil.h" + +void ff_ea_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block); + +#endif /* AVCODEC_EAIDCT_H */ diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index b738f9458c103..ca7439397f4c4 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -32,6 +32,7 @@ #include "get_bits.h" #include "dsputil.h" #include "aandcttab.h" +#include "eaidct.h" #include "mpeg12.h" #include "mpeg12data.h" #include "libavutil/imgutils.h" @@ -68,9 +69,8 @@ static av_cold int decode_init(AVCodecContext *avctx) MadContext *s = avctx->priv_data; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_YUV420P; - if (avctx->idct_algo == FF_IDCT_AUTO) - avctx->idct_algo = FF_IDCT_EA; ff_dsputil_init(&s->dsp, avctx); + ff_init_scantable_permutation(s->dsp.idct_permutation, FF_NO_IDCT_PERM); ff_init_scantable(s->dsp.idct_permutation, &s->scantable, ff_zigzag_direct); ff_mpeg12_init_vlcs(); return 0; @@ -105,12 +105,12 @@ static inline void comp_block(MadContext *t, int mb_x, int mb_y, static inline void idct_put(MadContext *t, DCTELEM *block, int mb_x, int mb_y, int j) { if (j < 4) { - t->dsp.idct_put( + ff_ea_idct_put_c( t->frame.data[0] + (mb_y*16 + ((j&2)<<2))*t->frame.linesize[0] + mb_x*16 + ((j&1)<<3), t->frame.linesize[0], block); } else if (!(t->avctx->flags & CODEC_FLAG_GRAY)) { int index = j - 3; - t->dsp.idct_put( + ff_ea_idct_put_c( t->frame.data[index] + (mb_y*8)*t->frame.linesize[index] + mb_x*8, t->frame.linesize[index], block); } @@ -219,15 +219,9 @@ static void calc_quant_matrix(MadContext *s, int qscale) { int i; - if (s->avctx->idct_algo == FF_IDCT_EA) { - s->quant_matrix[0] = (ff_inv_aanscales[0]*ff_mpeg1_default_intra_matrix[0]) >> 11; - for (i=1; i<64; i++) - s->quant_matrix[i] = (ff_inv_aanscales[i]*ff_mpeg1_default_intra_matrix[i]*qscale + 32) >> 10; - } else { - s->quant_matrix[0] = ff_mpeg1_default_intra_matrix[0]; - for (i=1; i<64; i++) - s->quant_matrix[i] = (ff_mpeg1_default_intra_matrix[i]*qscale) << 1; - } + s->quant_matrix[0] = (ff_inv_aanscales[0]*ff_mpeg1_default_intra_matrix[0]) >> 11; + for (i=1; i<64; i++) + s->quant_matrix[i] = (ff_inv_aanscales[i]*ff_mpeg1_default_intra_matrix[i]*qscale + 32) >> 10; } static int decode_frame(AVCodecContext *avctx, diff --git a/libavcodec/eatgq.c b/libavcodec/eatgq.c index e53b99205bb0d..a55b061a50cd4 100644 --- a/libavcodec/eatgq.c +++ b/libavcodec/eatgq.c @@ -34,10 +34,10 @@ #include "bytestream.h" #include "dsputil.h" #include "aandcttab.h" +#include "eaidct.h" typedef struct TgqContext { AVCodecContext *avctx; - DSPContext dsp; AVFrame frame; int width,height; ScanTable scantable; @@ -48,11 +48,10 @@ typedef struct TgqContext { static av_cold int tgq_decode_init(AVCodecContext *avctx){ TgqContext *s = avctx->priv_data; + uint8_t idct_permutation[64]; s->avctx = avctx; - if(avctx->idct_algo==FF_IDCT_AUTO) - avctx->idct_algo=FF_IDCT_EA; - ff_dsputil_init(&s->dsp, avctx); - ff_init_scantable(s->dsp.idct_permutation, &s->scantable, ff_zigzag_direct); + ff_init_scantable_permutation(idct_permutation, FF_NO_IDCT_PERM); + ff_init_scantable(idct_permutation, &s->scantable, ff_zigzag_direct); avctx->time_base = (AVRational){1, 15}; avctx->pix_fmt = PIX_FMT_YUV420P; return 0; @@ -109,13 +108,13 @@ static void tgq_idct_put_mb(TgqContext *s, DCTELEM (*block)[64], int mb_x, int m uint8_t *dest_cb = s->frame.data[1] + (mb_y * 8 * s->frame.linesize[1]) + mb_x * 8; uint8_t *dest_cr = s->frame.data[2] + (mb_y * 8 * s->frame.linesize[2]) + mb_x * 8; - s->dsp.idct_put(dest_y , linesize, block[0]); - s->dsp.idct_put(dest_y + 8, linesize, block[1]); - s->dsp.idct_put(dest_y + 8*linesize , linesize, block[2]); - s->dsp.idct_put(dest_y + 8*linesize + 8, linesize, block[3]); + ff_ea_idct_put_c(dest_y , linesize, block[0]); + ff_ea_idct_put_c(dest_y + 8, linesize, block[1]); + ff_ea_idct_put_c(dest_y + 8*linesize , linesize, block[2]); + ff_ea_idct_put_c(dest_y + 8*linesize + 8, linesize, block[3]); if(!(s->avctx->flags&CODEC_FLAG_GRAY)){ - s->dsp.idct_put(dest_cb, s->frame.linesize[1], block[4]); - s->dsp.idct_put(dest_cr, s->frame.linesize[2], block[5]); + ff_ea_idct_put_c(dest_cb, s->frame.linesize[1], block[4]); + ff_ea_idct_put_c(dest_cr, s->frame.linesize[2], block[5]); } } @@ -180,10 +179,7 @@ static void tgq_calculate_qtable(TgqContext *s, int quant){ const int b = (11*(100-quant))/100 + 4; for(j=0;j<8;j++) for(i=0;i<8;i++) - if (s->avctx->idct_algo==FF_IDCT_EA) - s->qtable[j*8+i] = ((a*(j+i)/(7+7) + b)*ff_inv_aanscales[j*8+i])>>(14-4); - else - s->qtable[j*8+i] = (a*(j+i)/(7+7) + b)<<3; + s->qtable[j*8+i] = ((a*(j+i)/(7+7) + b)*ff_inv_aanscales[j*8+i])>>(14-4); } static int tgq_decode_frame(AVCodecContext *avctx, diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index 9824940d974bc..548a08404406f 100644 --- a/libavcodec/eatqi.c +++ b/libavcodec/eatqi.c @@ -30,6 +30,7 @@ #include "get_bits.h" #include "dsputil.h" #include "aandcttab.h" +#include "eaidct.h" #include "mpeg12.h" #include "mpegvideo.h" @@ -46,9 +47,8 @@ static av_cold int tqi_decode_init(AVCodecContext *avctx) TqiContext *t = avctx->priv_data; MpegEncContext *s = &t->s; s->avctx = avctx; - if(avctx->idct_algo==FF_IDCT_AUTO) - avctx->idct_algo=FF_IDCT_EA; ff_dsputil_init(&s->dsp, avctx); + ff_init_scantable_permutation(s->dsp.idct_permutation, FF_NO_IDCT_PERM); ff_init_scantable(s->dsp.idct_permutation, &s->intra_scantable, ff_zigzag_direct); s->qscale = 1; avctx->time_base = (AVRational){1, 15}; @@ -76,13 +76,13 @@ static inline void tqi_idct_put(TqiContext *t, DCTELEM (*block)[64]) uint8_t *dest_cb = t->frame.data[1] + (s->mb_y * 8 * t->frame.linesize[1]) + s->mb_x * 8; uint8_t *dest_cr = t->frame.data[2] + (s->mb_y * 8 * t->frame.linesize[2]) + s->mb_x * 8; - s->dsp.idct_put(dest_y , linesize, block[0]); - s->dsp.idct_put(dest_y + 8, linesize, block[1]); - s->dsp.idct_put(dest_y + 8*linesize , linesize, block[2]); - s->dsp.idct_put(dest_y + 8*linesize + 8, linesize, block[3]); + ff_ea_idct_put_c(dest_y , linesize, block[0]); + ff_ea_idct_put_c(dest_y + 8, linesize, block[1]); + ff_ea_idct_put_c(dest_y + 8*linesize , linesize, block[2]); + ff_ea_idct_put_c(dest_y + 8*linesize + 8, linesize, block[3]); if(!(s->avctx->flags&CODEC_FLAG_GRAY)) { - s->dsp.idct_put(dest_cb, t->frame.linesize[1], block[4]); - s->dsp.idct_put(dest_cr, t->frame.linesize[2], block[5]); + ff_ea_idct_put_c(dest_cb, t->frame.linesize[1], block[4]); + ff_ea_idct_put_c(dest_cr, t->frame.linesize[2], block[5]); } } @@ -90,15 +90,9 @@ static void tqi_calculate_qtable(MpegEncContext *s, int quant) { const int qscale = (215 - 2*quant)*5; int i; - if (s->avctx->idct_algo==FF_IDCT_EA) { - s->intra_matrix[0] = (ff_inv_aanscales[0]*ff_mpeg1_default_intra_matrix[0])>>11; - for(i=1; i<64; i++) - s->intra_matrix[i] = (ff_inv_aanscales[i]*ff_mpeg1_default_intra_matrix[i]*qscale + 32)>>14; - }else{ - s->intra_matrix[0] = ff_mpeg1_default_intra_matrix[0]; - for(i=1; i<64; i++) - s->intra_matrix[i] = (ff_mpeg1_default_intra_matrix[i]*qscale + 32)>>3; - } + s->intra_matrix[0] = (ff_inv_aanscales[0]*ff_mpeg1_default_intra_matrix[0])>>11; + for(i=1; i<64; i++) + s->intra_matrix[i] = (ff_inv_aanscales[i]*ff_mpeg1_default_intra_matrix[i]*qscale + 32)>>14; } static int tqi_decode_frame(AVCodecContext *avctx, From 9f1280def4e838802806b0762f64a3874d845fda Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 29 Jul 2012 18:10:36 +0100 Subject: [PATCH 06/12] tiny_psnr: support 32-bit float samples Signed-off-by: Mans Rullgard --- tests/tiny_psnr.c | 54 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 5 deletions(-) diff --git a/tests/tiny_psnr.c b/tests/tiny_psnr.c index 1583f2cf7b681..5db266247823c 100644 --- a/tests/tiny_psnr.c +++ b/tests/tiny_psnr.c @@ -24,6 +24,8 @@ #include #include +#include "libavutil/intfloat.h" + #define FFMIN(a, b) ((a) > (b) ? (b) : (a)) #define F 100 #define SIZE 2048 @@ -88,6 +90,23 @@ static uint64_t int_sqrt(uint64_t a) return ret; } +static int16_t get_s16l(uint8_t *p) +{ + union { + uint16_t u; + int16_t s; + } v; + v.u = p[0] | p[1] << 8; + return v.s; +} + +static float get_f32l(uint8_t *p) +{ + union av_intfloat32 v; + v.i = p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24; + return v.f; +} + int main(int argc, char *argv[]) { int i, j; @@ -96,8 +115,8 @@ int main(int argc, char *argv[]) FILE *f[2]; uint8_t buf[2][SIZE]; uint64_t psnr; - int len = argc < 4 ? 1 : atoi(argv[3]); - int64_t max = (1 << (8 * len)) - 1; + int len = 1; + int64_t max; int shift = argc < 5 ? 0 : atoi(argv[4]); int skip_bytes = argc < 6 ? 0 : atoi(argv[5]); int size0 = 0; @@ -110,6 +129,25 @@ int main(int argc, char *argv[]) return 1; } + if (argc > 3) { + if (!strcmp(argv[3], "u8")) { + len = 1; + } else if (!strcmp(argv[3], "s16")) { + len = 2; + } else if (!strcmp(argv[3], "f32")) { + len = 4; + } else { + char *end; + len = strtol(argv[3], &end, 0); + if (*end || len > 2) { + fprintf(stderr, "Unsupported sample format: %s\n", argv[3]); + return 1; + } + } + } + + max = (1 << (8 * len)) - 1; + f[0] = fopen(argv[1], "rb"); f[1] = fopen(argv[2], "rb"); if (!f[0] || !f[1]) { @@ -145,13 +183,19 @@ int main(int argc, char *argv[]) int s0 = fread(buf[0], 1, SIZE, f[0]); int s1 = fread(buf[1], 1, SIZE, f[1]); - for (j = 0; j < FFMIN(s0, s1); j++) { + for (j = 0; j < FFMIN(s0, s1); j += len) { int64_t a = buf[0][j]; int64_t b = buf[1][j]; int dist; if (len == 2) { - a = (int16_t)(a | (buf[0][++j] << 8)); - b = (int16_t)(b | (buf[1][ j] << 8)); + a = get_s16l(buf[0] + j); + b = get_s16l(buf[1] + j); + } else if (len == 4) { + a = get_f32l(buf[0] + j) * (1 << 24); + b = get_f32l(buf[1] + j) * (1 << 24); + } else { + a = buf[0][j]; + b = buf[1][j]; } sse += (a - b) * (a - b); dist = abs(a - b); From 70c8753d33a5158950a25ff155776083749c9193 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 29 Jul 2012 18:11:27 +0100 Subject: [PATCH 07/12] fate: amix: specify f32 sample format for comparison Signed-off-by: Mans Rullgard --- tests/fate/filter.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index 7c1170f43f3f8..35b65588c8662 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -16,6 +16,7 @@ $(FATE_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav $(FATE_AMIX): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav $(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav $(FATE_AMIX): CMP = oneoff +$(FATE_AMIX): CMP_UNIT = f32 FATE_FILTER += $(FATE_AMIX) FATE_SAMPLES_AVCONV += $(FATE_AMIX) From be391fb6df9a6bb25e0f97357c0a7d0ff7af6c1a Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 28 Jul 2012 21:45:24 -0700 Subject: [PATCH 08/12] h264_ps: declare array of colorspace strings on its own line. --- libavcodec/h264_ps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 3f53af82a20f8..7d9d59664f877 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -431,6 +431,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){ sps->sar.den= 1; if(s->avctx->debug&FF_DEBUG_PICT_INFO){ + static const char csp[4][5] = { "Gray", "420", "422", "444" }; av_log(h->s.avctx, AV_LOG_DEBUG, "sps:%u profile:%d/%d poc:%d ref:%d %dx%d %s %s crop:%d/%d/%d/%d %s %s %d/%d\n", sps_id, sps->profile_idc, sps->level_idc, sps->poc_type, @@ -441,7 +442,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){ sps->crop_left, sps->crop_right, sps->crop_top, sps->crop_bottom, sps->vui_parameters_present_flag ? "VUI" : "", - ((const char*[]){"Gray","420","422","444"})[sps->chroma_format_idc], + csp[sps->chroma_format_idc], sps->timing_info_present_flag ? sps->num_units_in_tick : 0, sps->timing_info_present_flag ? sps->time_scale : 0 ); From 193cdd9a3e8d7fc5669d32a611c862a000adce23 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 27 Jul 2012 13:01:04 +0200 Subject: [PATCH 09/12] configure: Add missing descriptions to help output --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2be5b98a9bf8b..a39ead7b780ca 100755 --- a/configure +++ b/configure @@ -116,6 +116,8 @@ Component options: --enable-x11grab enable X11 grabbing [no] --disable-network disable network support [no] --disable-dct disable DCT code + --disable-dwt disable DWT code + --disable-lsp disable LSP code --disable-mdct disable MDCT code --disable-rdft disable RDFT code --disable-fft disable FFT code @@ -207,16 +209,18 @@ Advanced options (experts only): --ar=AR use archive tool AR [$ar_default] --as=AS use assembler AS [$as_default] --cc=CC use C compiler CC [$cc_default] + --dep-cc=DEPCC use dependency generator DEPCC [$cc_default] --ld=LD use linker LD --host-cc=HOSTCC use host C compiler HOSTCC --host-cflags=HCFLAGS use HCFLAGS when compiling for host --host-ldflags=HLDFLAGS use HLDFLAGS when linking for host --host-libs=HLIBS use libs HLIBS when linking for host + --host-os=OS compiler host OS [$target_os] --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS] --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS] --extra-libs=ELIBS add ELIBS [$ELIBS] --extra-version=STRING version string suffix [] - --optflags override optimization-related compiler flags + --optflags=OPTFLAGS override optimization-related compiler flags --build-suffix=SUFFIX library name suffix [] --malloc-prefix=PREFIX prefix malloc and related names with PREFIX --arch=ARCH select architecture [$arch] @@ -224,6 +228,7 @@ Advanced options (experts only): instruction selection, may crash on older CPUs) --enable-pic build position-independent code --enable-sram allow use of on-chip SRAM + --enable-thumb compile for Thumb instruction set --disable-symver disable symbol versioning --disable-fastdiv disable table-based division --enable-hardcoded-tables use hardcoded tables instead of runtime generation From 29d70274ecff6d39c96b3bcdd263102c4a4e6e06 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 28 Jul 2012 12:42:25 +0200 Subject: [PATCH 10/12] wv: K&R formatting cosmetics --- libavformat/wv.c | 175 ++++++++++++++++++++++++++--------------------- 1 file changed, 96 insertions(+), 79 deletions(-) diff --git a/libavformat/wv.c b/libavformat/wv.c index b31144907fd67..3fd1abcb87d80 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -36,7 +36,7 @@ #define WV_END_BLOCK 0x1000 #define WV_SINGLE_BLOCK (WV_START_BLOCK | WV_END_BLOCK) -enum WV_FLAGS{ +enum WV_FLAGS { WV_MONO = 0x0004, WV_HYBRID = 0x0008, WV_JOINT = 0x0010, @@ -51,11 +51,11 @@ enum WV_FLAGS{ }; static const int wv_rates[16] = { - 6000, 8000, 9600, 11025, 12000, 16000, 22050, 24000, - 32000, 44100, 48000, 64000, 88200, 96000, 192000, -1 + 6000, 8000, 9600, 11025, 12000, 16000, 22050, 24000, + 32000, 44100, 48000, 64000, 88200, 96000, 192000, -1 }; -typedef struct{ +typedef struct { uint32_t blksize, flags; int rate, chan, bpp; uint32_t chmask; @@ -64,7 +64,7 @@ typedef struct{ int block_parsed; uint8_t extra[WV_EXTRA_SIZE]; int64_t pos; -}WVContext; +} WVContext; static int wv_probe(AVProbeData *p) { @@ -78,7 +78,8 @@ static int wv_probe(AVProbeData *p) return 0; } -static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb, int append) +static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb, + int append) { WVContext *wc = ctx->priv_data; uint32_t tag, ver; @@ -87,64 +88,67 @@ static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb, int appen uint32_t chmask; wc->pos = avio_tell(pb); - if(!append){ + if (!append) { tag = avio_rl32(pb); if (tag != MKTAG('w', 'v', 'p', 'k')) return AVERROR_INVALIDDATA; size = avio_rl32(pb); - if(size < 24 || size > WV_BLOCK_LIMIT){ + if (size < 24 || size > WV_BLOCK_LIMIT) { av_log(ctx, AV_LOG_ERROR, "Incorrect block size %i\n", size); return AVERROR_INVALIDDATA; } wc->blksize = size; ver = avio_rl16(pb); - if(ver < 0x402 || ver > 0x410){ + if (ver < 0x402 || ver > 0x410) { av_log(ctx, AV_LOG_ERROR, "Unsupported version %03X\n", ver); return AVERROR_PATCHWELCOME; } avio_r8(pb); // track no avio_r8(pb); // track sub index wc->samples = avio_rl32(pb); // total samples in file - wc->soff = avio_rl32(pb); // offset in samples of current block + wc->soff = avio_rl32(pb); // offset in samples of current block avio_read(pb, wc->extra, WV_EXTRA_SIZE); - }else{ + } else { size = wc->blksize; } wc->flags = AV_RL32(wc->extra + 4); - // blocks with zero samples don't contain actual audio information and should be ignored + /* Blocks with zero samples don't contain actual audio information + * and should be ignored */ if (!AV_RN32(wc->extra)) return 0; - //parse flags - bpp = ((wc->flags & 3) + 1) << 3; - chan = 1 + !(wc->flags & WV_MONO); + // parse flags + bpp = ((wc->flags & 3) + 1) << 3; + chan = 1 + !(wc->flags & WV_MONO); chmask = wc->flags & WV_MONO ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO; - rate = wv_rates[(wc->flags >> 23) & 0xF]; + rate = wv_rates[(wc->flags >> 23) & 0xF]; wc->multichannel = !!((wc->flags & WV_SINGLE_BLOCK) != WV_SINGLE_BLOCK); - if(wc->multichannel){ - chan = wc->chan; + if (wc->multichannel) { + chan = wc->chan; chmask = wc->chmask; } - if((rate == -1 || !chan) && !wc->block_parsed){ + if ((rate == -1 || !chan) && !wc->block_parsed) { int64_t block_end = avio_tell(pb) + wc->blksize - 24; - if(!pb->seekable){ - av_log(ctx, AV_LOG_ERROR, "Cannot determine additional parameters\n"); + if (!pb->seekable) { + av_log(ctx, AV_LOG_ERROR, + "Cannot determine additional parameters\n"); return AVERROR_INVALIDDATA; } - while(avio_tell(pb) < block_end){ + while (avio_tell(pb) < block_end) { int id, size; - id = avio_r8(pb); + id = avio_r8(pb); size = (id & 0x80) ? avio_rl24(pb) : avio_r8(pb); size <<= 1; - if(id&0x40) + if (id & 0x40) size--; - switch(id&0x3F){ + switch (id & 0x3F) { case 0xD: - if(size <= 1){ - av_log(ctx, AV_LOG_ERROR, "Insufficient channel information\n"); + if (size <= 1) { + av_log(ctx, AV_LOG_ERROR, + "Insufficient channel information\n"); return AVERROR_INVALIDDATA; } chan = avio_r8(pb); - switch(size - 2){ + switch (size - 2) { case 0: chmask = avio_r8(pb); break; @@ -159,11 +163,12 @@ static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb, int appen break; case 5: avio_skip(pb, 1); - chan |= (avio_r8(pb) & 0xF) << 8; + chan |= (avio_r8(pb) & 0xF) << 8; chmask = avio_rl24(pb); break; default: - av_log(ctx, AV_LOG_ERROR, "Invalid channel info size %d\n", size); + av_log(ctx, AV_LOG_ERROR, + "Invalid channel info size %d\n", size); return AVERROR_INVALIDDATA; } break; @@ -173,30 +178,41 @@ static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb, int appen default: avio_skip(pb, size); } - if(id&0x40) + if (id & 0x40) avio_skip(pb, 1); } - if(rate == -1){ - av_log(ctx, AV_LOG_ERROR, "Cannot determine custom sampling rate\n"); + if (rate == -1) { + av_log(ctx, AV_LOG_ERROR, + "Cannot determine custom sampling rate\n"); return AVERROR_INVALIDDATA; } avio_seek(pb, block_end - wc->blksize + 24, SEEK_SET); } - if(!wc->bpp) wc->bpp = bpp; - if(!wc->chan) wc->chan = chan; - if(!wc->chmask) wc->chmask = chmask; - if(!wc->rate) wc->rate = rate; + if (!wc->bpp) + wc->bpp = bpp; + if (!wc->chan) + wc->chan = chan; + if (!wc->chmask) + wc->chmask = chmask; + if (!wc->rate) + wc->rate = rate; - if(wc->flags && bpp != wc->bpp){ - av_log(ctx, AV_LOG_ERROR, "Bits per sample differ, this block: %i, header block: %i\n", bpp, wc->bpp); + if (wc->flags && bpp != wc->bpp) { + av_log(ctx, AV_LOG_ERROR, + "Bits per sample differ, this block: %i, header block: %i\n", + bpp, wc->bpp); return AVERROR_INVALIDDATA; } - if(wc->flags && !wc->multichannel && chan != wc->chan){ - av_log(ctx, AV_LOG_ERROR, "Channels differ, this block: %i, header block: %i\n", chan, wc->chan); + if (wc->flags && !wc->multichannel && chan != wc->chan) { + av_log(ctx, AV_LOG_ERROR, + "Channels differ, this block: %i, header block: %i\n", + chan, wc->chan); return AVERROR_INVALIDDATA; } - if(wc->flags && rate != -1 && rate != wc->rate){ - av_log(ctx, AV_LOG_ERROR, "Sampling rate differ, this block: %i, header block: %i\n", rate, wc->rate); + if (wc->flags && rate != -1 && rate != wc->rate) { + av_log(ctx, AV_LOG_ERROR, + "Sampling rate differ, this block: %i, header block: %i\n", + rate, wc->rate); return AVERROR_INVALIDDATA; } wc->blksize = size - 24; @@ -211,10 +227,10 @@ static int wv_read_header(AVFormatContext *s) int ret; wc->block_parsed = 0; - for(;;){ + for (;;) { if ((ret = wv_read_block_header(s, pb, 0)) < 0) return ret; - if(!AV_RN32(wc->extra)) + if (!AV_RN32(wc->extra)) avio_skip(pb, wc->blksize - 24); else break; @@ -224,20 +240,20 @@ static int wv_read_header(AVFormatContext *s) st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); - st->codec->codec_type = AVMEDIA_TYPE_AUDIO; - st->codec->codec_id = CODEC_ID_WAVPACK; - st->codec->channels = wc->chan; - st->codec->channel_layout = wc->chmask; - st->codec->sample_rate = wc->rate; + st->codec->codec_type = AVMEDIA_TYPE_AUDIO; + st->codec->codec_id = CODEC_ID_WAVPACK; + st->codec->channels = wc->chan; + st->codec->channel_layout = wc->chmask; + st->codec->sample_rate = wc->rate; st->codec->bits_per_coded_sample = wc->bpp; avpriv_set_pts_info(st, 64, 1, wc->rate); st->start_time = 0; - st->duration = wc->samples; + st->duration = wc->samples; - if(s->pb->seekable) { + if (s->pb->seekable) { int64_t cur = avio_tell(s->pb); ff_ape_parse_tag(s); - if(!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX)) + if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX)) ff_id3v1_read(s); avio_seek(s->pb, cur, SEEK_SET); } @@ -245,8 +261,7 @@ static int wv_read_header(AVFormatContext *s) return 0; } -static int wv_read_packet(AVFormatContext *s, - AVPacket *pkt) +static int wv_read_packet(AVFormatContext *s, AVPacket *pkt) { WVContext *wc = s->priv_data; int ret; @@ -256,41 +271,41 @@ static int wv_read_packet(AVFormatContext *s, if (s->pb->eof_reached) return AVERROR_EOF; - if(wc->block_parsed){ + if (wc->block_parsed) { if ((ret = wv_read_block_header(s, s->pb, 0)) < 0) return ret; } pos = wc->pos; off = wc->multichannel ? 4 : 0; - if(av_new_packet(pkt, wc->blksize + WV_EXTRA_SIZE + off) < 0) + if (av_new_packet(pkt, wc->blksize + WV_EXTRA_SIZE + off) < 0) return AVERROR(ENOMEM); - if(wc->multichannel) + if (wc->multichannel) AV_WL32(pkt->data, wc->blksize + WV_EXTRA_SIZE + 12); memcpy(pkt->data + off, wc->extra, WV_EXTRA_SIZE); ret = avio_read(s->pb, pkt->data + WV_EXTRA_SIZE + off, wc->blksize); - if(ret != wc->blksize){ + if (ret != wc->blksize) { av_free_packet(pkt); return AVERROR(EIO); } - while(!(wc->flags & WV_END_BLOCK)){ - if(avio_rl32(s->pb) != MKTAG('w', 'v', 'p', 'k')){ + while (!(wc->flags & WV_END_BLOCK)) { + if (avio_rl32(s->pb) != MKTAG('w', 'v', 'p', 'k')) { av_free_packet(pkt); return AVERROR_INVALIDDATA; } - if((ret = av_append_packet(s->pb, pkt, 4)) < 0){ + if ((ret = av_append_packet(s->pb, pkt, 4)) < 0) { av_free_packet(pkt); return ret; } size = AV_RL32(pkt->data + pkt->size - 4); - if(size < 24 || size > WV_BLOCK_LIMIT){ + if (size < 24 || size > WV_BLOCK_LIMIT) { av_free_packet(pkt); av_log(s, AV_LOG_ERROR, "Incorrect block size %d\n", size); return AVERROR_INVALIDDATA; } wc->blksize = size; - ver = avio_rl16(s->pb); - if(ver < 0x402 || ver > 0x410){ + ver = avio_rl16(s->pb); + if (ver < 0x402 || ver > 0x410) { av_free_packet(pkt); av_log(s, AV_LOG_ERROR, "Unsupported version %03X\n", ver); return AVERROR_PATCHWELCOME; @@ -298,29 +313,30 @@ static int wv_read_packet(AVFormatContext *s, avio_r8(s->pb); // track no avio_r8(s->pb); // track sub index wc->samples = avio_rl32(s->pb); // total samples in file - wc->soff = avio_rl32(s->pb); // offset in samples of current block - if((ret = av_append_packet(s->pb, pkt, WV_EXTRA_SIZE)) < 0){ + wc->soff = avio_rl32(s->pb); // offset in samples of current block + if ((ret = av_append_packet(s->pb, pkt, WV_EXTRA_SIZE)) < 0) { av_free_packet(pkt); return ret; } memcpy(wc->extra, pkt->data + pkt->size - WV_EXTRA_SIZE, WV_EXTRA_SIZE); - if ((ret = wv_read_block_header(s, s->pb, 1)) < 0){ + if ((ret = wv_read_block_header(s, s->pb, 1)) < 0) { av_free_packet(pkt); return ret; } ret = av_append_packet(s->pb, pkt, wc->blksize); - if(ret < 0){ + if (ret < 0) { av_free_packet(pkt); return ret; } } pkt->stream_index = 0; - wc->block_parsed = 1; - pkt->pts = wc->soff; - block_samples = AV_RN32(wc->extra); + wc->block_parsed = 1; + pkt->pts = wc->soff; + block_samples = AV_RN32(wc->extra); if (block_samples > INT32_MAX) - av_log(s, AV_LOG_WARNING, "Too many samples in block: %"PRIu32"\n", block_samples); + av_log(s, AV_LOG_WARNING, + "Too many samples in block: %"PRIu32"\n", block_samples); else pkt->duration = block_samples; @@ -328,9 +344,10 @@ static int wv_read_packet(AVFormatContext *s, return 0; } -static int wv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) +static int wv_read_seek(AVFormatContext *s, int stream_index, + int64_t timestamp, int flags) { - AVStream *st = s->streams[stream_index]; + AVStream *st = s->streams[stream_index]; WVContext *wc = s->priv_data; AVPacket pkt1, *pkt = &pkt1; int ret; @@ -345,19 +362,19 @@ static int wv_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, return 0; } /* if timestamp is out of bounds, return error */ - if(timestamp < 0 || timestamp >= s->duration) + if (timestamp < 0 || timestamp >= s->duration) return AVERROR(EINVAL); pos = avio_tell(s->pb); - do{ + do { ret = av_read_frame(s, pkt); - if (ret < 0){ + if (ret < 0) { avio_seek(s->pb, pos, SEEK_SET); return ret; } pts = pkt->pts; av_free_packet(pkt); - }while(pts < timestamp); + } while(pts < timestamp); return 0; } From 8e5d71d1109bb509ae75d04682f326fe740a413f Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 25 Jul 2012 19:27:03 -0700 Subject: [PATCH 11/12] swscale: bury one more piece of inline asm under HAVE_INLINE_ASM. --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 5cfa7f237de12..0f8ef2b15cbdb 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -661,7 +661,7 @@ static int swScale(SwsContext *c, const uint8_t *src[], if (isPlanar(dstFormat) && isALPHA(dstFormat) && !alpPixBuf) fillPlane(dst[3], dstStride[3], dstW, dstY - lastDstY, lastDstY, 255); -#if HAVE_MMX2 +#if HAVE_MMX2 && HAVE_INLINE_ASM if (av_get_cpu_flags() & AV_CPU_FLAG_MMX2) __asm__ volatile ("sfence" ::: "memory"); #endif From 6774247a9d7d15033c2b80118c03cb0cb10027df Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 24 Jul 2012 23:51:41 +0200 Subject: [PATCH 12/12] avformat: Drop pointless "format" from container long names --- libavformat/4xm.c | 2 +- libavformat/amr.c | 4 ++-- libavformat/apc.c | 2 +- libavformat/assdec.c | 2 +- libavformat/assenc.c | 2 +- libavformat/avs.c | 2 +- libavformat/bethsoftvid.c | 2 +- libavformat/cdg.c | 2 +- libavformat/cdxl.c | 2 +- libavformat/crcenc.c | 2 +- libavformat/daud.c | 4 ++-- libavformat/dsicin.c | 2 +- libavformat/dv.c | 2 +- libavformat/dvenc.c | 2 +- libavformat/electronicarts.c | 2 +- libavformat/ffmdec.c | 2 +- libavformat/ffmenc.c | 2 +- libavformat/ffmetadec.c | 2 +- libavformat/ffmetaenc.c | 2 +- libavformat/flic.c | 2 +- libavformat/framecrcenc.c | 2 +- libavformat/g723_1.c | 2 +- libavformat/h264dec.c | 2 +- libavformat/hls.c | 2 +- libavformat/idcin.c | 2 +- libavformat/idroqdec.c | 2 +- libavformat/idroqenc.c | 2 +- libavformat/ilbc.c | 4 ++-- libavformat/ipmovie.c | 2 +- libavformat/iss.c | 2 +- libavformat/lmlm4.c | 2 +- libavformat/lxfdec.c | 2 +- libavformat/m4vdec.c | 2 +- libavformat/matroskadec.c | 2 +- libavformat/matroskaenc.c | 6 +++--- libavformat/md5enc.c | 4 ++-- libavformat/mm.c | 2 +- libavformat/movenc.c | 2 +- libavformat/mpegenc.c | 4 ++-- libavformat/mpjpeg.c | 2 +- libavformat/mtv.c | 2 +- libavformat/mvi.c | 2 +- libavformat/mxg.c | 2 +- libavformat/ncdec.c | 2 +- libavformat/nullenc.c | 2 +- libavformat/nutdec.c | 2 +- libavformat/nutenc.c | 2 +- libavformat/nuv.c | 2 +- libavformat/pcmdec.c | 40 ++++++++++++++++++------------------ libavformat/pcmenc.c | 40 ++++++++++++++++++------------------ libavformat/pmpdec.c | 2 +- libavformat/psxstr.c | 2 +- libavformat/pva.c | 2 +- libavformat/qcp.c | 2 +- libavformat/r3d.c | 2 +- libavformat/rawenc.c | 8 ++++---- libavformat/rawvideodec.c | 2 +- libavformat/rl2.c | 2 +- libavformat/rmdec.c | 2 +- libavformat/rmenc.c | 2 +- libavformat/rpl.c | 2 +- libavformat/rsodec.c | 2 +- libavformat/rsoenc.c | 2 +- libavformat/rtpenc.c | 2 +- libavformat/rtsp.c | 2 +- libavformat/rtspdec.c | 2 +- libavformat/rtspenc.c | 2 +- libavformat/sapdec.c | 2 +- libavformat/sapenc.c | 2 +- libavformat/segafilm.c | 2 +- libavformat/sierravmd.c | 2 +- libavformat/sol.c | 2 +- libavformat/soxdec.c | 2 +- libavformat/soxenc.c | 2 +- libavformat/srtdec.c | 2 +- libavformat/tiertexseq.c | 2 +- libavformat/vc1test.c | 2 +- libavformat/vocdec.c | 2 +- libavformat/vocenc.c | 2 +- libavformat/wav.c | 2 +- libavformat/wc3movie.c | 2 +- libavformat/westwood_aud.c | 2 +- libavformat/westwood_vqa.c | 2 +- libavformat/xa.c | 2 +- libavformat/yop.c | 2 +- libavformat/yuv4mpeg.c | 4 ++-- 86 files changed, 135 insertions(+), 135 deletions(-) diff --git a/libavformat/4xm.c b/libavformat/4xm.c index fa6a26bcc2aab..135721fd25477 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -349,7 +349,7 @@ static int fourxm_read_close(AVFormatContext *s) AVInputFormat ff_fourxm_demuxer = { .name = "4xm", - .long_name = NULL_IF_CONFIG_SMALL("4X Technologies format"), + .long_name = NULL_IF_CONFIG_SMALL("4X Technologies"), .priv_data_size = sizeof(FourxmDemuxContext), .read_probe = fourxm_probe, .read_header = fourxm_read_header, diff --git a/libavformat/amr.c b/libavformat/amr.c index f20bc0aa69c02..0812e0f40c8c0 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -156,7 +156,7 @@ static int amr_read_packet(AVFormatContext *s, AVPacket *pkt) #if CONFIG_AMR_DEMUXER AVInputFormat ff_amr_demuxer = { .name = "amr", - .long_name = NULL_IF_CONFIG_SMALL("3GPP AMR file format"), + .long_name = NULL_IF_CONFIG_SMALL("3GPP AMR"), .read_probe = amr_probe, .read_header = amr_read_header, .read_packet = amr_read_packet, @@ -167,7 +167,7 @@ AVInputFormat ff_amr_demuxer = { #if CONFIG_AMR_MUXER AVOutputFormat ff_amr_muxer = { .name = "amr", - .long_name = NULL_IF_CONFIG_SMALL("3GPP AMR file format"), + .long_name = NULL_IF_CONFIG_SMALL("3GPP AMR"), .mime_type = "audio/amr", .extensions = "amr", .audio_codec = CODEC_ID_AMR_NB, diff --git a/libavformat/apc.c b/libavformat/apc.c index 30ddae3665b67..f6a3395cf467f 100644 --- a/libavformat/apc.c +++ b/libavformat/apc.c @@ -82,7 +82,7 @@ static int apc_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_apc_demuxer = { .name = "apc", - .long_name = NULL_IF_CONFIG_SMALL("CRYO APC format"), + .long_name = NULL_IF_CONFIG_SMALL("CRYO APC"), .read_probe = apc_probe, .read_header = apc_read_header, .read_packet = apc_read_packet, diff --git a/libavformat/assdec.c b/libavformat/assdec.c index bb1f525616c57..bb85f293042a4 100644 --- a/libavformat/assdec.c +++ b/libavformat/assdec.c @@ -205,7 +205,7 @@ static int read_seek2(AVFormatContext *s, int stream_index, AVInputFormat ff_ass_demuxer = { .name = "ass", - .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"), + .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle"), .priv_data_size = sizeof(ASSContext), .read_probe = probe, .read_header = read_header, diff --git a/libavformat/assenc.c b/libavformat/assenc.c index c53af16bbd858..b3f422d8b96cf 100644 --- a/libavformat/assenc.c +++ b/libavformat/assenc.c @@ -79,7 +79,7 @@ static int write_trailer(AVFormatContext *s) AVOutputFormat ff_ass_muxer = { .name = "ass", - .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle format"), + .long_name = NULL_IF_CONFIG_SMALL("Advanced SubStation Alpha subtitle"), .mime_type = "text/x-ssa", .extensions = "ass,ssa", .priv_data_size = sizeof(ASSContext), diff --git a/libavformat/avs.c b/libavformat/avs.c index a03f7e336a110..64c2289439d2a 100644 --- a/libavformat/avs.c +++ b/libavformat/avs.c @@ -223,7 +223,7 @@ static int avs_read_close(AVFormatContext * s) AVInputFormat ff_avs_demuxer = { .name = "avs", - .long_name = NULL_IF_CONFIG_SMALL("AVS format"), + .long_name = NULL_IF_CONFIG_SMALL("AVS"), .priv_data_size = sizeof(AvsFormat), .read_probe = avs_probe, .read_header = avs_read_header, diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index 3e6ec5fa6d1cc..5acc3fc4b7058 100644 --- a/libavformat/bethsoftvid.c +++ b/libavformat/bethsoftvid.c @@ -283,7 +283,7 @@ static int vid_read_close(AVFormatContext *s) AVInputFormat ff_bethsoftvid_demuxer = { .name = "bethsoftvid", - .long_name = NULL_IF_CONFIG_SMALL("Bethesda Softworks VID format"), + .long_name = NULL_IF_CONFIG_SMALL("Bethesda Softworks VID"), .priv_data_size = sizeof(BVID_DemuxContext), .read_probe = vid_probe, .read_header = vid_read_header, diff --git a/libavformat/cdg.c b/libavformat/cdg.c index bbc3b4025c7d5..3b7b739c6ced4 100644 --- a/libavformat/cdg.c +++ b/libavformat/cdg.c @@ -65,7 +65,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_cdg_demuxer = { .name = "cdg", - .long_name = NULL_IF_CONFIG_SMALL("CD Graphics Format"), + .long_name = NULL_IF_CONFIG_SMALL("CD Graphics"), .read_header = read_header, .read_packet = read_packet, .extensions = "cdg", diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c index ed795e4cc5593..809507fc055ea 100644 --- a/libavformat/cdxl.c +++ b/libavformat/cdxl.c @@ -171,7 +171,7 @@ static const AVClass cdxl_demuxer_class = { AVInputFormat ff_cdxl_demuxer = { .name = "cdxl", - .long_name = NULL_IF_CONFIG_SMALL("Commodore CDXL video format"), + .long_name = NULL_IF_CONFIG_SMALL("Commodore CDXL video"), .priv_data_size = sizeof(CDXLDemuxContext), .read_header = cdxl_read_header, .read_packet = cdxl_read_packet, diff --git a/libavformat/crcenc.c b/libavformat/crcenc.c index c67fd099601a7..8c0c91d5a4719 100644 --- a/libavformat/crcenc.c +++ b/libavformat/crcenc.c @@ -56,7 +56,7 @@ static int crc_write_trailer(struct AVFormatContext *s) AVOutputFormat ff_crc_muxer = { .name = "crc", - .long_name = NULL_IF_CONFIG_SMALL("CRC testing format"), + .long_name = NULL_IF_CONFIG_SMALL("CRC testing"), .extensions = "", .priv_data_size = sizeof(CRCState), .audio_codec = CODEC_ID_PCM_S16LE, diff --git a/libavformat/daud.c b/libavformat/daud.c index ef02b1a60aa03..1fd5c7ae8025e 100644 --- a/libavformat/daud.c +++ b/libavformat/daud.c @@ -72,7 +72,7 @@ static int daud_write_packet(struct AVFormatContext *s, AVPacket *pkt) #if CONFIG_DAUD_DEMUXER AVInputFormat ff_daud_demuxer = { .name = "daud", - .long_name = NULL_IF_CONFIG_SMALL("D-Cinema audio format"), + .long_name = NULL_IF_CONFIG_SMALL("D-Cinema audio"), .read_header = daud_header, .read_packet = daud_packet, .extensions = "302", @@ -82,7 +82,7 @@ AVInputFormat ff_daud_demuxer = { #if CONFIG_DAUD_MUXER AVOutputFormat ff_daud_muxer = { .name = "daud", - .long_name = NULL_IF_CONFIG_SMALL("D-Cinema audio format"), + .long_name = NULL_IF_CONFIG_SMALL("D-Cinema audio"), .extensions = "302", .audio_codec = CODEC_ID_PCM_S24DAUD, .video_codec = CODEC_ID_NONE, diff --git a/libavformat/dsicin.c b/libavformat/dsicin.c index f8ba68d9624b2..24c58fcf040ab 100644 --- a/libavformat/dsicin.c +++ b/libavformat/dsicin.c @@ -219,7 +219,7 @@ static int cin_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_dsicin_demuxer = { .name = "dsicin", - .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN format"), + .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN"), .priv_data_size = sizeof(CinDemuxContext), .read_probe = cin_probe, .read_header = cin_read_header, diff --git a/libavformat/dv.c b/libavformat/dv.c index e02fb53f98a0b..c71863a3321a2 100644 --- a/libavformat/dv.c +++ b/libavformat/dv.c @@ -536,7 +536,7 @@ static int dv_probe(AVProbeData *p) #if CONFIG_DV_DEMUXER AVInputFormat ff_dv_demuxer = { .name = "dv", - .long_name = NULL_IF_CONFIG_SMALL("DV video format"), + .long_name = NULL_IF_CONFIG_SMALL("DV video"), .priv_data_size = sizeof(RawDVContext), .read_probe = dv_probe, .read_header = dv_read_header, diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c index 51eb16e27bb84..fdb259c3f17b5 100644 --- a/libavformat/dvenc.c +++ b/libavformat/dvenc.c @@ -405,7 +405,7 @@ static int dv_write_trailer(struct AVFormatContext *s) AVOutputFormat ff_dv_muxer = { .name = "dv", - .long_name = NULL_IF_CONFIG_SMALL("DV video format"), + .long_name = NULL_IF_CONFIG_SMALL("DV video"), .extensions = "dv", .priv_data_size = sizeof(DVMuxContext), .audio_codec = CODEC_ID_PCM_S16LE, diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index cc51af6e61c4f..716853e6caf37 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -598,7 +598,7 @@ static int ea_read_packet(AVFormatContext *s, AVInputFormat ff_ea_demuxer = { .name = "ea", - .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Multimedia Format"), + .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Multimedia"), .priv_data_size = sizeof(EaDemuxContext), .read_probe = ea_probe, .read_header = ea_read_header, diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c index 2149c8cdd748b..c4ee22e73a30f 100644 --- a/libavformat/ffmdec.c +++ b/libavformat/ffmdec.c @@ -508,7 +508,7 @@ static int ffm_probe(AVProbeData *p) AVInputFormat ff_ffm_demuxer = { .name = "ffm", - .long_name = NULL_IF_CONFIG_SMALL("FFM (AVserver live feed) format"), + .long_name = NULL_IF_CONFIG_SMALL("FFM (AVserver live feed)"), .priv_data_size = sizeof(FFMContext), .read_probe = ffm_probe, .read_header = ffm_read_header, diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index 500ae0bf505a9..7de6ec8b34fd7 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -239,7 +239,7 @@ static int ffm_write_trailer(AVFormatContext *s) AVOutputFormat ff_ffm_muxer = { .name = "ffm", - .long_name = NULL_IF_CONFIG_SMALL("FFM (AVserver live feed) format"), + .long_name = NULL_IF_CONFIG_SMALL("FFM (AVserver live feed)"), .mime_type = "", .extensions = "ffm", .priv_data_size = sizeof(FFMContext), diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c index 9774e946b25f4..69917d7604b69 100644 --- a/libavformat/ffmetadec.c +++ b/libavformat/ffmetadec.c @@ -168,7 +168,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_ffmetadata_demuxer = { .name = "ffmetadata", - .long_name = NULL_IF_CONFIG_SMALL("FFmpeg metadata in text format"), + .long_name = NULL_IF_CONFIG_SMALL("FFmpeg metadata in text"), .read_probe = probe, .read_header = read_header, .read_packet = read_packet, diff --git a/libavformat/ffmetaenc.c b/libavformat/ffmetaenc.c index 0aadb8a9cc523..f75efea8764ab 100644 --- a/libavformat/ffmetaenc.c +++ b/libavformat/ffmetaenc.c @@ -92,7 +92,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) AVOutputFormat ff_ffmetadata_muxer = { .name = "ffmetadata", - .long_name = NULL_IF_CONFIG_SMALL("FFmpeg metadata in text format"), + .long_name = NULL_IF_CONFIG_SMALL("FFmpeg metadata in text"), .extensions = "ffmeta", .write_header = write_header, .write_packet = write_packet, diff --git a/libavformat/flic.c b/libavformat/flic.c index 849ec6912da13..6c6c85ffee2c8 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -262,7 +262,7 @@ static int flic_read_packet(AVFormatContext *s, AVInputFormat ff_flic_demuxer = { .name = "flic", - .long_name = NULL_IF_CONFIG_SMALL("FLI/FLC/FLX animation format"), + .long_name = NULL_IF_CONFIG_SMALL("FLI/FLC/FLX animation"), .priv_data_size = sizeof(FlicDemuxContext), .read_probe = flic_probe, .read_header = flic_read_header, diff --git a/libavformat/framecrcenc.c b/libavformat/framecrcenc.c index 36dfd297c682e..3018b726261fc 100644 --- a/libavformat/framecrcenc.c +++ b/libavformat/framecrcenc.c @@ -37,7 +37,7 @@ static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt) AVOutputFormat ff_framecrc_muxer = { .name = "framecrc", - .long_name = NULL_IF_CONFIG_SMALL("framecrc testing format"), + .long_name = NULL_IF_CONFIG_SMALL("framecrc testing"), .extensions = "", .audio_codec = CODEC_ID_PCM_S16LE, .video_codec = CODEC_ID_RAWVIDEO, diff --git a/libavformat/g723_1.c b/libavformat/g723_1.c index 415d01b480909..e9ae10b066050 100644 --- a/libavformat/g723_1.c +++ b/libavformat/g723_1.c @@ -77,7 +77,7 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_g723_1_demuxer = { .name = "g723_1", - .long_name = NULL_IF_CONFIG_SMALL("G.723.1 format"), + .long_name = NULL_IF_CONFIG_SMALL("G.723.1"), .read_header = g723_1_init, .read_packet = g723_1_read_packet, .extensions = "tco", diff --git a/libavformat/h264dec.c b/libavformat/h264dec.c index f9086476d5e23..b741d78b03eed 100644 --- a/libavformat/h264dec.c +++ b/libavformat/h264dec.c @@ -67,4 +67,4 @@ static int h264_probe(AVProbeData *p) return 0; } -FF_DEF_RAWVIDEO_DEMUXER(h264 , "raw H.264 video format", h264_probe, "h26l,h264,264", CODEC_ID_H264) +FF_DEF_RAWVIDEO_DEMUXER(h264 , "raw H.264 video", h264_probe, "h26l,h264,264", CODEC_ID_H264) diff --git a/libavformat/hls.c b/libavformat/hls.c index cda65cd362345..1f6b7d56ed35b 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -742,7 +742,7 @@ static int hls_probe(AVProbeData *p) AVInputFormat ff_hls_demuxer = { .name = "hls,applehttp", - .long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming format"), + .long_name = NULL_IF_CONFIG_SMALL("Apple HTTP Live Streaming"), .priv_data_size = sizeof(HLSContext), .read_probe = hls_probe, .read_header = hls_read_header, diff --git a/libavformat/idcin.c b/libavformat/idcin.c index eb2cb8bf55f67..6a9b0ca2a9874 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -293,7 +293,7 @@ static int idcin_read_packet(AVFormatContext *s, AVInputFormat ff_idcin_demuxer = { .name = "idcin", - .long_name = NULL_IF_CONFIG_SMALL("id Cinematic format"), + .long_name = NULL_IF_CONFIG_SMALL("id Cinematic"), .priv_data_size = sizeof(IdcinDemuxContext), .read_probe = idcin_probe, .read_header = idcin_read_header, diff --git a/libavformat/idroqdec.c b/libavformat/idroqdec.c index be3122e7896ec..b429b494f8b7a 100644 --- a/libavformat/idroqdec.c +++ b/libavformat/idroqdec.c @@ -218,7 +218,7 @@ static int roq_read_packet(AVFormatContext *s, AVInputFormat ff_roq_demuxer = { .name = "roq", - .long_name = NULL_IF_CONFIG_SMALL("id RoQ format"), + .long_name = NULL_IF_CONFIG_SMALL("id RoQ"), .priv_data_size = sizeof(RoqDemuxContext), .read_probe = roq_probe, .read_header = roq_read_header, diff --git a/libavformat/idroqenc.c b/libavformat/idroqenc.c index 394d16ff4dbdc..df44bb67c4811 100644 --- a/libavformat/idroqenc.c +++ b/libavformat/idroqenc.c @@ -37,7 +37,7 @@ static int roq_write_header(struct AVFormatContext *s) AVOutputFormat ff_roq_muxer = { .name = "roq", - .long_name = NULL_IF_CONFIG_SMALL("raw id RoQ format"), + .long_name = NULL_IF_CONFIG_SMALL("raw id RoQ"), .extensions = "roq", .audio_codec = CODEC_ID_ROQ_DPCM, .video_codec = CODEC_ID_ROQ, diff --git a/libavformat/ilbc.c b/libavformat/ilbc.c index 33aed77163531..b6be5abfbb8b6 100644 --- a/libavformat/ilbc.c +++ b/libavformat/ilbc.c @@ -122,7 +122,7 @@ static int ilbc_read_packet(AVFormatContext *s, AVInputFormat ff_ilbc_demuxer = { .name = "ilbc", - .long_name = NULL_IF_CONFIG_SMALL("iLBC storage file format"), + .long_name = NULL_IF_CONFIG_SMALL("iLBC storage"), .read_probe = ilbc_probe, .read_header = ilbc_read_header, .read_packet = ilbc_read_packet, @@ -131,7 +131,7 @@ AVInputFormat ff_ilbc_demuxer = { AVOutputFormat ff_ilbc_muxer = { .name = "ilbc", - .long_name = NULL_IF_CONFIG_SMALL("iLBC storage file format"), + .long_name = NULL_IF_CONFIG_SMALL("iLBC storage"), .mime_type = "audio/iLBC", .extensions = "lbc", .audio_codec = CODEC_ID_ILBC, diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c index 152b40ec7ba35..5557fc90867aa 100644 --- a/libavformat/ipmovie.c +++ b/libavformat/ipmovie.c @@ -636,7 +636,7 @@ static int ipmovie_read_packet(AVFormatContext *s, AVInputFormat ff_ipmovie_demuxer = { .name = "ipmovie", - .long_name = NULL_IF_CONFIG_SMALL("Interplay MVE format"), + .long_name = NULL_IF_CONFIG_SMALL("Interplay MVE"), .priv_data_size = sizeof(IPMVEContext), .read_probe = ipmovie_probe, .read_header = ipmovie_read_header, diff --git a/libavformat/iss.c b/libavformat/iss.c index b9848d3139322..1fd9f552d82fc 100644 --- a/libavformat/iss.c +++ b/libavformat/iss.c @@ -124,7 +124,7 @@ static int iss_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_iss_demuxer = { .name = "iss", - .long_name = NULL_IF_CONFIG_SMALL("Funcom ISS format"), + .long_name = NULL_IF_CONFIG_SMALL("Funcom ISS"), .priv_data_size = sizeof(IssDemuxContext), .read_probe = iss_probe, .read_header = iss_read_header, diff --git a/libavformat/lmlm4.c b/libavformat/lmlm4.c index 8daf7b45c45b8..e0c4e294868d3 100644 --- a/libavformat/lmlm4.c +++ b/libavformat/lmlm4.c @@ -120,7 +120,7 @@ static int lmlm4_read_packet(AVFormatContext *s, AVPacket *pkt) { AVInputFormat ff_lmlm4_demuxer = { .name = "lmlm4", - .long_name = NULL_IF_CONFIG_SMALL("lmlm4 raw format"), + .long_name = NULL_IF_CONFIG_SMALL("raw lmlm4"), .read_probe = lmlm4_probe, .read_header = lmlm4_read_header, .read_packet = lmlm4_read_packet, diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c index bc95a0820e03d..22d80725d07ff 100644 --- a/libavformat/lxfdec.c +++ b/libavformat/lxfdec.c @@ -339,7 +339,7 @@ static int lxf_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_lxf_demuxer = { .name = "lxf", - .long_name = NULL_IF_CONFIG_SMALL("VR native stream format (LXF)"), + .long_name = NULL_IF_CONFIG_SMALL("VR native stream (LXF)"), .priv_data_size = sizeof(LXFDemuxContext), .read_probe = lxf_probe, .read_header = lxf_read_header, diff --git a/libavformat/m4vdec.c b/libavformat/m4vdec.c index e856aadc10061..02d26f6cce86b 100644 --- a/libavformat/m4vdec.c +++ b/libavformat/m4vdec.c @@ -49,4 +49,4 @@ static int mpeg4video_probe(AVProbeData *probe_packet) return 0; } -FF_DEF_RAWVIDEO_DEMUXER(m4v, "raw MPEG-4 video format", mpeg4video_probe, "m4v", CODEC_ID_MPEG4) +FF_DEF_RAWVIDEO_DEMUXER(m4v, "raw MPEG-4 video", mpeg4video_probe, "m4v", CODEC_ID_MPEG4) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index da86ed343e7b0..3ac0635ebb1c0 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -2160,7 +2160,7 @@ static int matroska_read_close(AVFormatContext *s) AVInputFormat ff_matroska_demuxer = { .name = "matroska,webm", - .long_name = NULL_IF_CONFIG_SMALL("Matroska/WebM file format"), + .long_name = NULL_IF_CONFIG_SMALL("Matroska / WebM"), .priv_data_size = sizeof(MatroskaDemuxContext), .read_probe = matroska_probe, .read_header = matroska_read_header, diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 4504d295eaf3f..440bc4644a15f 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1288,7 +1288,7 @@ static int mkv_query_codec(enum CodecID codec_id, int std_compliance) #if CONFIG_MATROSKA_MUXER AVOutputFormat ff_matroska_muxer = { .name = "matroska", - .long_name = NULL_IF_CONFIG_SMALL("Matroska file format"), + .long_name = NULL_IF_CONFIG_SMALL("Matroska"), .mime_type = "video/x-matroska", .extensions = "mkv", .priv_data_size = sizeof(MatroskaMuxContext), @@ -1312,7 +1312,7 @@ AVOutputFormat ff_matroska_muxer = { #if CONFIG_WEBM_MUXER AVOutputFormat ff_webm_muxer = { .name = "webm", - .long_name = NULL_IF_CONFIG_SMALL("WebM file format"), + .long_name = NULL_IF_CONFIG_SMALL("WebM"), .mime_type = "video/webm", .extensions = "webm", .priv_data_size = sizeof(MatroskaMuxContext), @@ -1329,7 +1329,7 @@ AVOutputFormat ff_webm_muxer = { #if CONFIG_MATROSKA_AUDIO_MUXER AVOutputFormat ff_matroska_audio_muxer = { .name = "matroska", - .long_name = NULL_IF_CONFIG_SMALL("Matroska file format"), + .long_name = NULL_IF_CONFIG_SMALL("Matroska"), .mime_type = "audio/x-matroska", .extensions = "mka", .priv_data_size = sizeof(MatroskaMuxContext), diff --git a/libavformat/md5enc.c b/libavformat/md5enc.c index 4e8db3cbe0d6f..aaac5a97b2e68 100644 --- a/libavformat/md5enc.c +++ b/libavformat/md5enc.c @@ -68,7 +68,7 @@ static int write_trailer(struct AVFormatContext *s) AVOutputFormat ff_md5_muxer = { .name = "md5", - .long_name = NULL_IF_CONFIG_SMALL("MD5 testing format"), + .long_name = NULL_IF_CONFIG_SMALL("MD5 testing"), .extensions = "", .priv_data_size = PRIVSIZE, .audio_codec = CODEC_ID_PCM_S16LE, @@ -99,7 +99,7 @@ static int framemd5_write_packet(struct AVFormatContext *s, AVPacket *pkt) AVOutputFormat ff_framemd5_muxer = { .name = "framemd5", - .long_name = NULL_IF_CONFIG_SMALL("Per-frame MD5 testing format"), + .long_name = NULL_IF_CONFIG_SMALL("Per-frame MD5 testing"), .extensions = "", .priv_data_size = PRIVSIZE, .audio_codec = CODEC_ID_PCM_S16LE, diff --git a/libavformat/mm.c b/libavformat/mm.c index d25c978ac41d1..421c21641cd1b 100644 --- a/libavformat/mm.c +++ b/libavformat/mm.c @@ -188,7 +188,7 @@ static int read_packet(AVFormatContext *s, AVInputFormat ff_mm_demuxer = { .name = "mm", - .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM format"), + .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM"), .priv_data_size = sizeof(MmDemuxContext), .read_probe = probe, .read_header = read_header, diff --git a/libavformat/movenc.c b/libavformat/movenc.c index a97045cfc5d3c..3778e6bee11ce 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3357,7 +3357,7 @@ AVOutputFormat ff_ipod_muxer = { MOV_CLASS(ismv) AVOutputFormat ff_ismv_muxer = { .name = "ismv", - .long_name = NULL_IF_CONFIG_SMALL("ISMV/ISMA (Smooth Streaming) format"), + .long_name = NULL_IF_CONFIG_SMALL("ISMV/ISMA (Smooth Streaming)"), .mime_type = "application/mp4", .extensions = "ismv,isma", .priv_data_size = sizeof(MOVMuxContext), diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index ecb7cdaeb291a..4a1630b1a4696 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -1175,7 +1175,7 @@ AVOutputFormat ff_mpeg1vcd_muxer = { MPEGENC_CLASS(vob) AVOutputFormat ff_mpeg2vob_muxer = { .name = "vob", - .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 PS format (VOB)"), + .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 PS (VOB)"), .mime_type = "video/mpeg", .extensions = "vob", .priv_data_size = sizeof(MpegMuxContext), @@ -1211,7 +1211,7 @@ AVOutputFormat ff_mpeg2svcd_muxer = { MPEGENC_CLASS(dvd) AVOutputFormat ff_mpeg2dvd_muxer = { .name = "dvd", - .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 PS format (DVD VOB)"), + .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 PS (DVD VOB)"), .mime_type = "video/mpeg", .extensions = "dvd", .priv_data_size = sizeof(MpegMuxContext), diff --git a/libavformat/mpjpeg.c b/libavformat/mpjpeg.c index 79cc272e27cbd..01bc1d98c5d77 100644 --- a/libavformat/mpjpeg.c +++ b/libavformat/mpjpeg.c @@ -55,7 +55,7 @@ static int mpjpeg_write_trailer(AVFormatContext *s) AVOutputFormat ff_mpjpeg_muxer = { .name = "mpjpeg", - .long_name = NULL_IF_CONFIG_SMALL("MIME multipart JPEG format"), + .long_name = NULL_IF_CONFIG_SMALL("MIME multipart JPEG"), .mime_type = "multipart/x-mixed-replace;boundary=" BOUNDARY_TAG, .extensions = "mjpg", .audio_codec = CODEC_ID_NONE, diff --git a/libavformat/mtv.c b/libavformat/mtv.c index e917a1980ccb8..8c77afe1631e9 100644 --- a/libavformat/mtv.c +++ b/libavformat/mtv.c @@ -189,7 +189,7 @@ static int mtv_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_mtv_demuxer = { .name = "mtv", - .long_name = NULL_IF_CONFIG_SMALL("MTV format"), + .long_name = NULL_IF_CONFIG_SMALL("MTV"), .priv_data_size = sizeof(MTVDemuxContext), .read_probe = mtv_probe, .read_header = mtv_read_header, diff --git a/libavformat/mvi.c b/libavformat/mvi.c index 673a7121047de..14685262beb76 100644 --- a/libavformat/mvi.c +++ b/libavformat/mvi.c @@ -126,7 +126,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_mvi_demuxer = { .name = "mvi", - .long_name = NULL_IF_CONFIG_SMALL("Motion Pixels MVI format"), + .long_name = NULL_IF_CONFIG_SMALL("Motion Pixels MVI"), .priv_data_size = sizeof(MviDemuxContext), .read_header = read_header, .read_packet = read_packet, diff --git a/libavformat/mxg.c b/libavformat/mxg.c index cb983f1462a06..d0510d5fe57e2 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -241,7 +241,7 @@ static int mxg_close(struct AVFormatContext *s) AVInputFormat ff_mxg_demuxer = { .name = "mxg", - .long_name = NULL_IF_CONFIG_SMALL("MxPEG clip file format"), + .long_name = NULL_IF_CONFIG_SMALL("MxPEG clip"), .priv_data_size = sizeof(MXGContext), .read_header = mxg_read_header, .read_packet = mxg_read_packet, diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c index cc8ae9593abd6..0bdd6157c34d3 100644 --- a/libavformat/ncdec.c +++ b/libavformat/ncdec.c @@ -93,7 +93,7 @@ static int nc_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_nc_demuxer = { .name = "nc", - .long_name = NULL_IF_CONFIG_SMALL("NC camera feed format"), + .long_name = NULL_IF_CONFIG_SMALL("NC camera feed"), .read_probe = nc_probe, .read_header = nc_read_header, .read_packet = nc_read_packet, diff --git a/libavformat/nullenc.c b/libavformat/nullenc.c index eec6eee3097a2..bb6671d5182ea 100644 --- a/libavformat/nullenc.c +++ b/libavformat/nullenc.c @@ -28,7 +28,7 @@ static int null_write_packet(struct AVFormatContext *s, AVPacket *pkt) AVOutputFormat ff_null_muxer = { .name = "null", - .long_name = NULL_IF_CONFIG_SMALL("raw null video format"), + .long_name = NULL_IF_CONFIG_SMALL("raw null video"), .audio_codec = AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE), .video_codec = CODEC_ID_RAWVIDEO, .write_packet = null_write_packet, diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index f3cb4d88384c1..e78de7fce8a94 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -991,7 +991,7 @@ static int nut_read_close(AVFormatContext *s) AVInputFormat ff_nut_demuxer = { .name = "nut", - .long_name = NULL_IF_CONFIG_SMALL("NUT format"), + .long_name = NULL_IF_CONFIG_SMALL("NUT"), .priv_data_size = sizeof(NUTContext), .read_probe = nut_probe, .read_header = nut_read_header, diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 76d5852ce0f1f..86c98bc86a71b 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -862,7 +862,7 @@ static int nut_write_trailer(AVFormatContext *s){ AVOutputFormat ff_nut_muxer = { .name = "nut", - .long_name = NULL_IF_CONFIG_SMALL("NUT format"), + .long_name = NULL_IF_CONFIG_SMALL("NUT"), .mime_type = "video/x-nut", .extensions = "nut", .priv_data_size = sizeof(NUTContext), diff --git a/libavformat/nuv.c b/libavformat/nuv.c index 3939828ffb22d..0cf5f72100d8d 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -264,7 +264,7 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { AVInputFormat ff_nuv_demuxer = { .name = "nuv", - .long_name = NULL_IF_CONFIG_SMALL("NuppelVideo format"), + .long_name = NULL_IF_CONFIG_SMALL("NuppelVideo"), .priv_data_size = sizeof(NUVContext), .read_probe = nuv_probe, .read_header = nuv_header, diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index 512bc0a21eeac..fce0418f3798d 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -74,62 +74,62 @@ AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \ .priv_class = &name_ ## _demuxer_class, \ }; -PCMDEF(f64be, "PCM 64 bit floating-point big-endian format", +PCMDEF(f64be, "PCM 64-bit floating-point big-endian", NULL, CODEC_ID_PCM_F64BE) -PCMDEF(f64le, "PCM 64 bit floating-point little-endian format", +PCMDEF(f64le, "PCM 64-bit floating-point little-endian", NULL, CODEC_ID_PCM_F64LE) -PCMDEF(f32be, "PCM 32 bit floating-point big-endian format", +PCMDEF(f32be, "PCM 32-bit floating-point big-endian", NULL, CODEC_ID_PCM_F32BE) -PCMDEF(f32le, "PCM 32 bit floating-point little-endian format", +PCMDEF(f32le, "PCM 32-bit floating-point little-endian", NULL, CODEC_ID_PCM_F32LE) -PCMDEF(s32be, "PCM signed 32 bit big-endian format", +PCMDEF(s32be, "PCM signed 32-bit big-endian", NULL, CODEC_ID_PCM_S32BE) -PCMDEF(s32le, "PCM signed 32 bit little-endian format", +PCMDEF(s32le, "PCM signed 32-bit little-endian", NULL, CODEC_ID_PCM_S32LE) -PCMDEF(s24be, "PCM signed 24 bit big-endian format", +PCMDEF(s24be, "PCM signed 24-bit big-endian", NULL, CODEC_ID_PCM_S24BE) -PCMDEF(s24le, "PCM signed 24 bit little-endian format", +PCMDEF(s24le, "PCM signed 24-bit little-endian", NULL, CODEC_ID_PCM_S24LE) -PCMDEF(s16be, "PCM signed 16 bit big-endian format", +PCMDEF(s16be, "PCM signed 16-bit big-endian", AV_NE("sw", NULL), CODEC_ID_PCM_S16BE) -PCMDEF(s16le, "PCM signed 16 bit little-endian format", +PCMDEF(s16le, "PCM signed 16-bit little-endian", AV_NE(NULL, "sw"), CODEC_ID_PCM_S16LE) -PCMDEF(s8, "PCM signed 8 bit format", +PCMDEF(s8, "PCM signed 8-bit", "sb", CODEC_ID_PCM_S8) -PCMDEF(u32be, "PCM unsigned 32 bit big-endian format", +PCMDEF(u32be, "PCM unsigned 32-bit big-endian", NULL, CODEC_ID_PCM_U32BE) -PCMDEF(u32le, "PCM unsigned 32 bit little-endian format", +PCMDEF(u32le, "PCM unsigned 32-bit little-endian", NULL, CODEC_ID_PCM_U32LE) -PCMDEF(u24be, "PCM unsigned 24 bit big-endian format", +PCMDEF(u24be, "PCM unsigned 24-bit big-endian", NULL, CODEC_ID_PCM_U24BE) -PCMDEF(u24le, "PCM unsigned 24 bit little-endian format", +PCMDEF(u24le, "PCM unsigned 24-bit little-endian", NULL, CODEC_ID_PCM_U24LE) -PCMDEF(u16be, "PCM unsigned 16 bit big-endian format", +PCMDEF(u16be, "PCM unsigned 16-bit big-endian", AV_NE("uw", NULL), CODEC_ID_PCM_U16BE) -PCMDEF(u16le, "PCM unsigned 16 bit little-endian format", +PCMDEF(u16le, "PCM unsigned 16-bit little-endian", AV_NE(NULL, "uw"), CODEC_ID_PCM_U16LE) -PCMDEF(u8, "PCM unsigned 8 bit format", +PCMDEF(u8, "PCM unsigned 8-bit", "ub", CODEC_ID_PCM_U8) -PCMDEF(alaw, "PCM A-law format", +PCMDEF(alaw, "PCM A-law", "al", CODEC_ID_PCM_ALAW) -PCMDEF(mulaw, "PCM mu-law format", +PCMDEF(mulaw, "PCM mu-law", "ul", CODEC_ID_PCM_MULAW) diff --git a/libavformat/pcmenc.c b/libavformat/pcmenc.c index 553df1f877a4f..34b1c53b40daf 100644 --- a/libavformat/pcmenc.c +++ b/libavformat/pcmenc.c @@ -33,62 +33,62 @@ AVOutputFormat ff_pcm_ ## name_ ## _muxer = { \ .flags = AVFMT_NOTIMESTAMPS, \ }; -PCMDEF(f64be, "PCM 64 bit floating-point big-endian format", +PCMDEF(f64be, "PCM 64-bit floating-point big-endian", NULL, CODEC_ID_PCM_F64BE) -PCMDEF(f64le, "PCM 64 bit floating-point little-endian format", +PCMDEF(f64le, "PCM 64-bit floating-point little-endian", NULL, CODEC_ID_PCM_F64LE) -PCMDEF(f32be, "PCM 32 bit floating-point big-endian format", +PCMDEF(f32be, "PCM 32-bit floating-point big-endian", NULL, CODEC_ID_PCM_F32BE) -PCMDEF(f32le, "PCM 32 bit floating-point little-endian format", +PCMDEF(f32le, "PCM 32-bit floating-point little-endian", NULL, CODEC_ID_PCM_F32LE) -PCMDEF(s32be, "PCM signed 32 bit big-endian format", +PCMDEF(s32be, "PCM signed 32-bit big-endian", NULL, CODEC_ID_PCM_S32BE) -PCMDEF(s32le, "PCM signed 32 bit little-endian format", +PCMDEF(s32le, "PCM signed 32-bit little-endian", NULL, CODEC_ID_PCM_S32LE) -PCMDEF(s24be, "PCM signed 24 bit big-endian format", +PCMDEF(s24be, "PCM signed 24-bit big-endian", NULL, CODEC_ID_PCM_S24BE) -PCMDEF(s24le, "PCM signed 24 bit little-endian format", +PCMDEF(s24le, "PCM signed 24-bit little-endian", NULL, CODEC_ID_PCM_S24LE) -PCMDEF(s16be, "PCM signed 16 bit big-endian format", +PCMDEF(s16be, "PCM signed 16-bit big-endian", AV_NE("sw", NULL), CODEC_ID_PCM_S16BE) -PCMDEF(s16le, "PCM signed 16 bit little-endian format", +PCMDEF(s16le, "PCM signed 16-bit little-endian", AV_NE(NULL, "sw"), CODEC_ID_PCM_S16LE) -PCMDEF(s8, "PCM signed 8 bit format", +PCMDEF(s8, "PCM signed 8-bit", "sb", CODEC_ID_PCM_S8) -PCMDEF(u32be, "PCM unsigned 32 bit big-endian format", +PCMDEF(u32be, "PCM unsigned 32-bit big-endian", NULL, CODEC_ID_PCM_U32BE) -PCMDEF(u32le, "PCM unsigned 32 bit little-endian format", +PCMDEF(u32le, "PCM unsigned 32-bit little-endian", NULL, CODEC_ID_PCM_U32LE) -PCMDEF(u24be, "PCM unsigned 24 bit big-endian format", +PCMDEF(u24be, "PCM unsigned 24-bit big-endian", NULL, CODEC_ID_PCM_U24BE) -PCMDEF(u24le, "PCM unsigned 24 bit little-endian format", +PCMDEF(u24le, "PCM unsigned 24-bit little-endian", NULL, CODEC_ID_PCM_U24LE) -PCMDEF(u16be, "PCM unsigned 16 bit big-endian format", +PCMDEF(u16be, "PCM unsigned 16-bit big-endian", AV_NE("uw", NULL), CODEC_ID_PCM_U16BE) -PCMDEF(u16le, "PCM unsigned 16 bit little-endian format", +PCMDEF(u16le, "PCM unsigned 16-bit little-endian", AV_NE(NULL, "uw"), CODEC_ID_PCM_U16LE) -PCMDEF(u8, "PCM unsigned 8 bit format", +PCMDEF(u8, "PCM unsigned 8-bit", "ub", CODEC_ID_PCM_U8) -PCMDEF(alaw, "PCM A-law format", +PCMDEF(alaw, "PCM A-law", "al", CODEC_ID_PCM_ALAW) -PCMDEF(mulaw, "PCM mu-law format", +PCMDEF(mulaw, "PCM mu-law", "ul", CODEC_ID_PCM_MULAW) diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c index 9df39be0a19cd..ca3b33597a306 100644 --- a/libavformat/pmpdec.c +++ b/libavformat/pmpdec.c @@ -170,7 +170,7 @@ static int pmp_close(AVFormatContext *s) AVInputFormat ff_pmp_demuxer = { .name = "pmp", - .long_name = NULL_IF_CONFIG_SMALL("Playstation Portable PMP format"), + .long_name = NULL_IF_CONFIG_SMALL("Playstation Portable PMP"), .priv_data_size = sizeof(PMPContext), .read_probe = pmp_probe, .read_header = pmp_header, diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c index 6405c246bd707..f49e356a4bfe8 100644 --- a/libavformat/psxstr.c +++ b/libavformat/psxstr.c @@ -262,7 +262,7 @@ static int str_read_close(AVFormatContext *s) AVInputFormat ff_str_demuxer = { .name = "psxstr", - .long_name = NULL_IF_CONFIG_SMALL("Sony Playstation STR format"), + .long_name = NULL_IF_CONFIG_SMALL("Sony Playstation STR"), .priv_data_size = sizeof(StrDemuxContext), .read_probe = str_probe, .read_header = str_read_header, diff --git a/libavformat/pva.c b/libavformat/pva.c index 064f4039cce87..bfb6987c287bd 100644 --- a/libavformat/pva.c +++ b/libavformat/pva.c @@ -203,7 +203,7 @@ static int64_t pva_read_timestamp(struct AVFormatContext *s, int stream_index, AVInputFormat ff_pva_demuxer = { .name = "pva", - .long_name = NULL_IF_CONFIG_SMALL("TechnoTrend PVA file and stream format"), + .long_name = NULL_IF_CONFIG_SMALL("TechnoTrend PVA"), .priv_data_size = sizeof(PVAContext), .read_probe = pva_probe, .read_header = pva_read_header, diff --git a/libavformat/qcp.c b/libavformat/qcp.c index 6545a1cdfdc2e..de0490650218c 100644 --- a/libavformat/qcp.c +++ b/libavformat/qcp.c @@ -188,7 +188,7 @@ static int qcp_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_qcp_demuxer = { .name = "qcp", - .long_name = NULL_IF_CONFIG_SMALL("QCP format"), + .long_name = NULL_IF_CONFIG_SMALL("QCP"), .priv_data_size = sizeof(QCPContext), .read_probe = qcp_probe, .read_header = qcp_read_header, diff --git a/libavformat/r3d.c b/libavformat/r3d.c index 1795631beaa3c..a5e5d1c4f6e8a 100644 --- a/libavformat/r3d.c +++ b/libavformat/r3d.c @@ -396,7 +396,7 @@ static int r3d_close(AVFormatContext *s) AVInputFormat ff_r3d_demuxer = { .name = "r3d", - .long_name = NULL_IF_CONFIG_SMALL("REDCODE R3D format"), + .long_name = NULL_IF_CONFIG_SMALL("REDCODE R3D"), .priv_data_size = sizeof(R3DContext), .read_probe = r3d_probe, .read_header = r3d_read_header, diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c index e46fe64d5a6fa..fde5b24e65ac6 100644 --- a/libavformat/rawenc.c +++ b/libavformat/rawenc.c @@ -161,7 +161,7 @@ AVOutputFormat ff_h263_muxer = { #if CONFIG_H264_MUXER AVOutputFormat ff_h264_muxer = { .name = "h264", - .long_name = NULL_IF_CONFIG_SMALL("raw H.264 video format"), + .long_name = NULL_IF_CONFIG_SMALL("raw H.264 video"), .extensions = "h264", .audio_codec = CODEC_ID_NONE, .video_codec = CODEC_ID_H264, @@ -173,7 +173,7 @@ AVOutputFormat ff_h264_muxer = { #if CONFIG_M4V_MUXER AVOutputFormat ff_m4v_muxer = { .name = "m4v", - .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"), + .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video"), .extensions = "m4v", .audio_codec = CODEC_ID_NONE, .video_codec = CODEC_ID_MPEG4, @@ -235,7 +235,7 @@ AVOutputFormat ff_mpeg2video_muxer = { #if CONFIG_RAWVIDEO_MUXER AVOutputFormat ff_rawvideo_muxer = { .name = "rawvideo", - .long_name = NULL_IF_CONFIG_SMALL("raw video format"), + .long_name = NULL_IF_CONFIG_SMALL("raw video"), .extensions = "yuv,rgb", .audio_codec = CODEC_ID_NONE, .video_codec = CODEC_ID_RAWVIDEO, @@ -247,7 +247,7 @@ AVOutputFormat ff_rawvideo_muxer = { #if CONFIG_SRT_MUXER AVOutputFormat ff_srt_muxer = { .name = "srt", - .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"), + .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"), .mime_type = "application/x-subrip", .extensions = "srt", .write_packet = ff_raw_write_packet, diff --git a/libavformat/rawvideodec.c b/libavformat/rawvideodec.c index c27cd7c5dbf87..5c1593e3c1348 100644 --- a/libavformat/rawvideodec.c +++ b/libavformat/rawvideodec.c @@ -62,7 +62,7 @@ static const AVClass rawvideo_demuxer_class = { AVInputFormat ff_rawvideo_demuxer = { .name = "rawvideo", - .long_name = NULL_IF_CONFIG_SMALL("raw video format"), + .long_name = NULL_IF_CONFIG_SMALL("raw video"), .priv_data_size = sizeof(FFRawVideoDemuxerContext), .read_header = ff_raw_read_header, .read_packet = rawvideo_read_packet, diff --git a/libavformat/rl2.c b/libavformat/rl2.c index d84b8b9fd62b2..2f0ef118ae641 100644 --- a/libavformat/rl2.c +++ b/libavformat/rl2.c @@ -286,7 +286,7 @@ static int rl2_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp AVInputFormat ff_rl2_demuxer = { .name = "rl2", - .long_name = NULL_IF_CONFIG_SMALL("RL2 format"), + .long_name = NULL_IF_CONFIG_SMALL("RL2"), .priv_data_size = sizeof(Rl2DemuxContext), .read_probe = rl2_probe, .read_header = rl2_read_header, diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 05a7c59f452ba..484a986553d5e 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -983,7 +983,7 @@ static int64_t rm_read_dts(AVFormatContext *s, int stream_index, AVInputFormat ff_rm_demuxer = { .name = "rm", - .long_name = NULL_IF_CONFIG_SMALL("RealMedia format"), + .long_name = NULL_IF_CONFIG_SMALL("RealMedia"), .priv_data_size = sizeof(RMDemuxContext), .read_probe = rm_probe, .read_header = rm_read_header, diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c index a6df21b432a5f..4b33964234334 100644 --- a/libavformat/rmenc.c +++ b/libavformat/rmenc.c @@ -462,7 +462,7 @@ static int rm_write_trailer(AVFormatContext *s) AVOutputFormat ff_rm_muxer = { .name = "rm", - .long_name = NULL_IF_CONFIG_SMALL("RealMedia format"), + .long_name = NULL_IF_CONFIG_SMALL("RealMedia"), .mime_type = "application/vnd.rn-realmedia", .extensions = "rm,ra", .priv_data_size = sizeof(RMMuxContext), diff --git a/libavformat/rpl.c b/libavformat/rpl.c index 3454fbe49140e..07d6895ee2937 100644 --- a/libavformat/rpl.c +++ b/libavformat/rpl.c @@ -353,7 +353,7 @@ static int rpl_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_rpl_demuxer = { .name = "rpl", - .long_name = NULL_IF_CONFIG_SMALL("RPL/ARMovie format"), + .long_name = NULL_IF_CONFIG_SMALL("RPL / ARMovie"), .priv_data_size = sizeof(RPLContext), .read_probe = rpl_probe, .read_header = rpl_read_header, diff --git a/libavformat/rsodec.c b/libavformat/rsodec.c index 72c12e7421dac..eed81af88463b 100644 --- a/libavformat/rsodec.c +++ b/libavformat/rsodec.c @@ -90,7 +90,7 @@ static int rso_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_rso_demuxer = { .name = "rso", - .long_name = NULL_IF_CONFIG_SMALL("Lego Mindstorms RSO format"), + .long_name = NULL_IF_CONFIG_SMALL("Lego Mindstorms RSO"), .extensions = "rso", .read_header = rso_read_header, .read_packet = rso_read_packet, diff --git a/libavformat/rsoenc.c b/libavformat/rsoenc.c index f338d0df4ec98..eabb2d5635213 100644 --- a/libavformat/rsoenc.c +++ b/libavformat/rsoenc.c @@ -102,7 +102,7 @@ static int rso_write_trailer(AVFormatContext *s) AVOutputFormat ff_rso_muxer = { .name = "rso", - .long_name = NULL_IF_CONFIG_SMALL("Lego Mindstorms RSO format"), + .long_name = NULL_IF_CONFIG_SMALL("Lego Mindstorms RSO"), .extensions = "rso", .audio_codec = CODEC_ID_PCM_U8, .video_codec = CODEC_ID_NONE, diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index d0b17e0970150..d173cf3eb3f53 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -546,7 +546,7 @@ static int rtp_write_trailer(AVFormatContext *s1) AVOutputFormat ff_rtp_muxer = { .name = "rtp", - .long_name = NULL_IF_CONFIG_SMALL("RTP output format"), + .long_name = NULL_IF_CONFIG_SMALL("RTP output"), .priv_data_size = sizeof(RTPMuxContext), .audio_codec = CODEC_ID_PCM_MULAW, .video_codec = CODEC_ID_MPEG4, diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 4cf7a90329e33..4b1e804805e94 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -2081,7 +2081,7 @@ static const AVClass rtp_demuxer_class = { AVInputFormat ff_rtp_demuxer = { .name = "rtp", - .long_name = NULL_IF_CONFIG_SMALL("RTP input format"), + .long_name = NULL_IF_CONFIG_SMALL("RTP input"), .priv_data_size = sizeof(RTSPState), .read_probe = rtp_probe, .read_header = rtp_read_header, diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index a125cc6e9e543..a891837eb1dd5 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -919,7 +919,7 @@ static const AVClass rtsp_demuxer_class = { AVInputFormat ff_rtsp_demuxer = { .name = "rtsp", - .long_name = NULL_IF_CONFIG_SMALL("RTSP input format"), + .long_name = NULL_IF_CONFIG_SMALL("RTSP input"), .priv_data_size = sizeof(RTSPState), .read_probe = rtsp_probe, .read_header = rtsp_read_header, diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index 902076d25dbbf..1d4780fa9ebcc 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -235,7 +235,7 @@ static int rtsp_write_close(AVFormatContext *s) AVOutputFormat ff_rtsp_muxer = { .name = "rtsp", - .long_name = NULL_IF_CONFIG_SMALL("RTSP output format"), + .long_name = NULL_IF_CONFIG_SMALL("RTSP output"), .priv_data_size = sizeof(RTSPState), .audio_codec = CODEC_ID_AAC, .video_codec = CODEC_ID_MPEG4, diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c index e377cefda9cc5..c1cdc8fb72f31 100644 --- a/libavformat/sapdec.c +++ b/libavformat/sapdec.c @@ -227,7 +227,7 @@ static int sap_fetch_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_sap_demuxer = { .name = "sap", - .long_name = NULL_IF_CONFIG_SMALL("SAP input format"), + .long_name = NULL_IF_CONFIG_SMALL("SAP input"), .priv_data_size = sizeof(struct SAPState), .read_probe = sap_probe, .read_header = sap_read_header, diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 235c71105c797..37ce0e5eea013 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -254,7 +254,7 @@ static int sap_write_packet(AVFormatContext *s, AVPacket *pkt) AVOutputFormat ff_sap_muxer = { .name = "sap", - .long_name = NULL_IF_CONFIG_SMALL("SAP output format"), + .long_name = NULL_IF_CONFIG_SMALL("SAP output"), .priv_data_size = sizeof(struct SAPState), .audio_codec = CODEC_ID_AAC, .video_codec = CODEC_ID_MPEG4, diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index 23cb3ed1ed2eb..bb26cf69e4d80 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -324,7 +324,7 @@ static int film_read_close(AVFormatContext *s) AVInputFormat ff_segafilm_demuxer = { .name = "film_cpk", - .long_name = NULL_IF_CONFIG_SMALL("Sega FILM/CPK format"), + .long_name = NULL_IF_CONFIG_SMALL("Sega FILM / CPK"), .priv_data_size = sizeof(FilmDemuxContext), .read_probe = film_probe, .read_header = film_read_header, diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c index 48b192e04cb12..300d43596d005 100644 --- a/libavformat/sierravmd.c +++ b/libavformat/sierravmd.c @@ -282,7 +282,7 @@ static int vmd_read_close(AVFormatContext *s) AVInputFormat ff_vmd_demuxer = { .name = "vmd", - .long_name = NULL_IF_CONFIG_SMALL("Sierra VMD format"), + .long_name = NULL_IF_CONFIG_SMALL("Sierra VMD"), .priv_data_size = sizeof(VmdDemuxContext), .read_probe = vmd_probe, .read_header = vmd_read_header, diff --git a/libavformat/sol.c b/libavformat/sol.c index d02373c65a7de..ed1e41b07d362 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -143,7 +143,7 @@ static int sol_read_packet(AVFormatContext *s, AVInputFormat ff_sol_demuxer = { .name = "sol", - .long_name = NULL_IF_CONFIG_SMALL("Sierra SOL format"), + .long_name = NULL_IF_CONFIG_SMALL("Sierra SOL"), .read_probe = sol_probe, .read_header = sol_read_header, .read_packet = sol_read_packet, diff --git a/libavformat/soxdec.c b/libavformat/soxdec.c index 6ce1848539da0..d116b2c9c47d9 100644 --- a/libavformat/soxdec.c +++ b/libavformat/soxdec.c @@ -144,7 +144,7 @@ static int sox_read_packet(AVFormatContext *s, AVInputFormat ff_sox_demuxer = { .name = "sox", - .long_name = NULL_IF_CONFIG_SMALL("SoX native format"), + .long_name = NULL_IF_CONFIG_SMALL("SoX native"), .read_probe = sox_probe, .read_header = sox_read_header, .read_packet = sox_read_packet, diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c index 55d5bd98c01b2..750a0a05a8709 100644 --- a/libavformat/soxenc.c +++ b/libavformat/soxenc.c @@ -117,7 +117,7 @@ static int sox_write_trailer(AVFormatContext *s) AVOutputFormat ff_sox_muxer = { .name = "sox", - .long_name = NULL_IF_CONFIG_SMALL("SoX native format"), + .long_name = NULL_IF_CONFIG_SMALL("SoX native"), .extensions = "sox", .priv_data_size = sizeof(SoXContext), .audio_codec = CODEC_ID_PCM_S32LE, diff --git a/libavformat/srtdec.c b/libavformat/srtdec.c index d170f9f856493..8d951f8f0a09f 100644 --- a/libavformat/srtdec.c +++ b/libavformat/srtdec.c @@ -94,7 +94,7 @@ static int srt_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_srt_demuxer = { .name = "srt", - .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"), + .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"), .read_probe = srt_probe, .read_header = srt_read_header, .read_packet = srt_read_packet, diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c index df7c38d0d2130..45a8482ab9eec 100644 --- a/libavformat/tiertexseq.c +++ b/libavformat/tiertexseq.c @@ -306,7 +306,7 @@ static int seq_read_close(AVFormatContext *s) AVInputFormat ff_tiertexseq_demuxer = { .name = "tiertexseq", - .long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ format"), + .long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ"), .priv_data_size = sizeof(SeqDemuxContext), .read_probe = seq_probe, .read_header = seq_read_header, diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index ffb165598a70e..7a7c8b67628fc 100644 --- a/libavformat/vc1test.c +++ b/libavformat/vc1test.c @@ -111,7 +111,7 @@ static int vc1t_read_packet(AVFormatContext *s, AVInputFormat ff_vc1t_demuxer = { .name = "vc1test", - .long_name = NULL_IF_CONFIG_SMALL("VC-1 test bitstream format"), + .long_name = NULL_IF_CONFIG_SMALL("VC-1 test bitstream"), .read_probe = vc1t_probe, .read_header = vc1t_read_header, .read_packet = vc1t_read_packet, diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c index b0af480a9ee15..77f4247010540 100644 --- a/libavformat/vocdec.c +++ b/libavformat/vocdec.c @@ -166,7 +166,7 @@ static int voc_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_voc_demuxer = { .name = "voc", - .long_name = NULL_IF_CONFIG_SMALL("Creative Voice file format"), + .long_name = NULL_IF_CONFIG_SMALL("Creative Voice"), .priv_data_size = sizeof(VocDecContext), .read_probe = voc_probe, .read_header = voc_read_header, diff --git a/libavformat/vocenc.c b/libavformat/vocenc.c index 30e38bfeba4f2..06d88a8c5f87b 100644 --- a/libavformat/vocenc.c +++ b/libavformat/vocenc.c @@ -91,7 +91,7 @@ static int voc_write_trailer(AVFormatContext *s) AVOutputFormat ff_voc_muxer = { .name = "voc", - .long_name = NULL_IF_CONFIG_SMALL("Creative Voice file format"), + .long_name = NULL_IF_CONFIG_SMALL("Creative Voice"), .mime_type = "audio/x-voc", .extensions = "voc", .priv_data_size = sizeof(VocEncContext), diff --git a/libavformat/wav.c b/libavformat/wav.c index 1bfe6d5eb6a8e..4ff2c389fca91 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -676,7 +676,7 @@ static int w64_read_header(AVFormatContext *s) AVInputFormat ff_w64_demuxer = { .name = "w64", - .long_name = NULL_IF_CONFIG_SMALL("Sony Wave64 format"), + .long_name = NULL_IF_CONFIG_SMALL("Sony Wave64"), .priv_data_size = sizeof(WAVContext), .read_probe = w64_probe, .read_header = w64_read_header, diff --git a/libavformat/wc3movie.c b/libavformat/wc3movie.c index 05e25fc44dfc6..e4fefcff1ce4c 100644 --- a/libavformat/wc3movie.c +++ b/libavformat/wc3movie.c @@ -293,7 +293,7 @@ static int wc3_read_close(AVFormatContext *s) AVInputFormat ff_wc3_demuxer = { .name = "wc3movie", - .long_name = NULL_IF_CONFIG_SMALL("Wing Commander III movie format"), + .long_name = NULL_IF_CONFIG_SMALL("Wing Commander III movie"), .priv_data_size = sizeof(Wc3DemuxContext), .read_probe = wc3_probe, .read_header = wc3_read_header, diff --git a/libavformat/westwood_aud.c b/libavformat/westwood_aud.c index a7148eb08b716..ae49184a47af1 100644 --- a/libavformat/westwood_aud.c +++ b/libavformat/westwood_aud.c @@ -173,7 +173,7 @@ static int wsaud_read_packet(AVFormatContext *s, AVInputFormat ff_wsaud_demuxer = { .name = "wsaud", - .long_name = NULL_IF_CONFIG_SMALL("Westwood Studios audio format"), + .long_name = NULL_IF_CONFIG_SMALL("Westwood Studios audio"), .read_probe = wsaud_probe, .read_header = wsaud_read_header, .read_packet = wsaud_read_packet, diff --git a/libavformat/westwood_vqa.c b/libavformat/westwood_vqa.c index 41aa5d897ffec..c431d5356c234 100644 --- a/libavformat/westwood_vqa.c +++ b/libavformat/westwood_vqa.c @@ -273,7 +273,7 @@ static int wsvqa_read_packet(AVFormatContext *s, AVInputFormat ff_wsvqa_demuxer = { .name = "wsvqa", - .long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA format"), + .long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA"), .priv_data_size = sizeof(WsVqaDemuxContext), .read_probe = wsvqa_probe, .read_header = wsvqa_read_header, diff --git a/libavformat/xa.c b/libavformat/xa.c index 09ef17ff35dc9..4c209656b2e92 100644 --- a/libavformat/xa.c +++ b/libavformat/xa.c @@ -120,7 +120,7 @@ static int xa_read_packet(AVFormatContext *s, AVInputFormat ff_xa_demuxer = { .name = "xa", - .long_name = NULL_IF_CONFIG_SMALL("Maxis XA File Format"), + .long_name = NULL_IF_CONFIG_SMALL("Maxis XA"), .priv_data_size = sizeof(MaxisXADemuxContext), .read_probe = xa_probe, .read_header = xa_read_header, diff --git a/libavformat/yop.c b/libavformat/yop.c index ba49830992b39..bffbe181753a0 100644 --- a/libavformat/yop.c +++ b/libavformat/yop.c @@ -206,7 +206,7 @@ static int yop_read_seek(AVFormatContext *s, int stream_index, AVInputFormat ff_yop_demuxer = { .name = "yop", - .long_name = NULL_IF_CONFIG_SMALL("Psygnosis YOP Format"), + .long_name = NULL_IF_CONFIG_SMALL("Psygnosis YOP"), .priv_data_size = sizeof(YopDecContext), .read_probe = yop_probe, .read_header = yop_read_header, diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index fef6aa0172225..f4a9c60168ce3 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -174,7 +174,7 @@ static int yuv4_write_header(AVFormatContext *s) AVOutputFormat ff_yuv4mpegpipe_muxer = { .name = "yuv4mpegpipe", - .long_name = NULL_IF_CONFIG_SMALL("YUV4MPEG pipe format"), + .long_name = NULL_IF_CONFIG_SMALL("YUV4MPEG pipe"), .mime_type = "", .extensions = "y4m", .priv_data_size = sizeof(int), @@ -414,7 +414,7 @@ static int yuv4_probe(AVProbeData *pd) #if CONFIG_YUV4MPEGPIPE_DEMUXER AVInputFormat ff_yuv4mpegpipe_demuxer = { .name = "yuv4mpegpipe", - .long_name = NULL_IF_CONFIG_SMALL("YUV4MPEG pipe format"), + .long_name = NULL_IF_CONFIG_SMALL("YUV4MPEG pipe"), .priv_data_size = sizeof(struct frame_attributes), .read_probe = yuv4_probe, .read_header = yuv4_read_header,