Skip to content

Commit

Permalink
avformat/riff.h : remove unused function parameter "const AVCodecTag …
Browse files Browse the repository at this point in the history
…*tags" of "void ff_put_bmp_header()"

Reviewed-by: Derek Buitenhuis <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
aleniuk authored and michaelni committed Aug 2, 2017
1 parent c79e753 commit 0aa8fa9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libavformat/asfenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
avio_wl16(pb, 40 + par->extradata_size); /* size */

/* BITMAPINFOHEADER header */
ff_put_bmp_header(pb, par, ff_codec_bmp_tags, 1, 0);
ff_put_bmp_header(pb, par, 1, 0);
}
end_header(pb, hpos);
}
Expand Down
2 changes: 1 addition & 1 deletion libavformat/avienc.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static int avi_write_header(AVFormatContext *s)
&& par->bits_per_coded_sample == 15)
par->bits_per_coded_sample = 16;
avist->pal_offset = avio_tell(pb) + 40;
ff_put_bmp_header(pb, par, ff_codec_bmp_tags, 0, 0);
ff_put_bmp_header(pb, par, 0, 0);
pix_fmt = avpriv_find_pix_fmt(avpriv_pix_fmt_bps_avi,
par->bits_per_coded_sample);
if ( !par->codec_tag
Expand Down
2 changes: 1 addition & 1 deletion libavformat/matroskaenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ static int mkv_write_codecprivate(AVFormatContext *s, AVIOContext *pb,
ret = AVERROR(EINVAL);
}

ff_put_bmp_header(dyn_cp, par, ff_codec_bmp_tags, 0, 0);
ff_put_bmp_header(dyn_cp, par, 0, 0);
}
} else if (par->codec_type == AVMEDIA_TYPE_AUDIO) {
unsigned int tag;
Expand Down
2 changes: 1 addition & 1 deletion libavformat/riff.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void ff_end_tag(AVIOContext *pb, int64_t start);
*/
int ff_get_bmp_header(AVIOContext *pb, AVStream *st, unsigned *esize);

void ff_put_bmp_header(AVIOContext *pb, AVCodecParameters *par, const AVCodecTag *tags, int for_asf, int ignore_extradata);
void ff_put_bmp_header(AVIOContext *pb, AVCodecParameters *par, int for_asf, int ignore_extradata);

/**
* Tell ff_put_wav_header() to use WAVEFORMATEX even for PCM codecs.
Expand Down
2 changes: 1 addition & 1 deletion libavformat/riffenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ int ff_put_wav_header(AVFormatContext *s, AVIOContext *pb,

/* BITMAPINFOHEADER header */
void ff_put_bmp_header(AVIOContext *pb, AVCodecParameters *par,
const AVCodecTag *tags, int for_asf, int ignore_extradata)
int for_asf, int ignore_extradata)
{
int keep_height = par->extradata_size >= 9 &&
!memcmp(par->extradata + par->extradata_size - 9, "BottomUp", 9);
Expand Down
2 changes: 1 addition & 1 deletion libavformat/wtvenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static void put_videoinfoheader2(AVIOContext *pb, AVStream *st)
avio_wl32(pb, 0);
avio_wl32(pb, 0);

ff_put_bmp_header(pb, st->codecpar, ff_codec_bmp_tags, 0, 1);
ff_put_bmp_header(pb, st->codecpar, 0, 1);

if (st->codecpar->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
int padding = (st->codecpar->extradata_size & 3) ? 4 - (st->codecpar->extradata_size & 3) : 0;
Expand Down

0 comments on commit 0aa8fa9

Please sign in to comment.