mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-03 09:41:17 +08:00
Add (mostly) const to variable and parameter declaration, where a char* was
used and 'const char*' should be, plus make some function declarations static if they aren't used outside their declaring source file. patch by Stefan Huehner stefan%%at%%huehner%%dot%%org Originally committed as revision 5492 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Diego Biurrun
parent
c8e9f80176
commit
a97c1e93aa
@@ -220,10 +220,10 @@ static int aiff_write_header(AVFormatContext *s)
|
||||
put_le32(pb, enc->codec_tag);
|
||||
if (coder_len & 1) {
|
||||
put_byte(pb, coder_len);
|
||||
put_buffer(pb, (uint8_t*)enc->codec->name, coder_len);
|
||||
put_buffer(pb, (const uint8_t*)enc->codec->name, coder_len);
|
||||
} else {
|
||||
put_byte(pb, coder_len+1);
|
||||
put_buffer(pb, (uint8_t*)enc->codec->name, coder_len);
|
||||
put_buffer(pb, (const uint8_t*)enc->codec->name, coder_len);
|
||||
put_byte(pb, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user