mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Revert "[BugFix] Enums are only 2 bytes on some Devices"
This reverts commit 4ec34f6986.
Reason for revert:
-fshort-enums makes them smaller if the explicitrly enumerated values will fit in a smaller type
Change-Id: I834dfd2b2039eda91bc02c9cf95a0f9dfc5783f6
This commit is contained in:
parent
4ec34f6986
commit
1fddea5e8e
18 changed files with 165 additions and 168 deletions
|
|
@ -743,12 +743,12 @@ av_cold int avcodec_close(AVCodecContext *avctx)
|
|||
return 0;
|
||||
}
|
||||
|
||||
AVCodec *avcodec_find_encoder(int codec_id)
|
||||
AVCodec *avcodec_find_encoder(enum CodecID id)
|
||||
{
|
||||
AVCodec *p, *experimental=NULL;
|
||||
p = first_avcodec;
|
||||
while (p) {
|
||||
if (p->encode != NULL && p->id == codec_id) {
|
||||
if (p->encode != NULL && p->id == id) {
|
||||
if (p->capabilities & CODEC_CAP_EXPERIMENTAL && !experimental) {
|
||||
experimental = p;
|
||||
} else
|
||||
|
|
@ -773,12 +773,12 @@ AVCodec *avcodec_find_encoder_by_name(const char *name)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
AVCodec *avcodec_find_decoder(int codec_id)
|
||||
AVCodec *avcodec_find_decoder(enum CodecID id)
|
||||
{
|
||||
AVCodec *p;
|
||||
p = first_avcodec;
|
||||
while (p) {
|
||||
if (p->decode != NULL && p->id == codec_id)
|
||||
if (p->decode != NULL && p->id == id)
|
||||
return p;
|
||||
p = p->next;
|
||||
}
|
||||
|
|
@ -1010,7 +1010,7 @@ char av_get_pict_type_char(int pict_type){
|
|||
}
|
||||
}
|
||||
|
||||
int av_get_bits_per_sample(int codec_id){
|
||||
int av_get_bits_per_sample(enum CodecID codec_id){
|
||||
switch(codec_id){
|
||||
case CODEC_ID_ADPCM_SBPRO_2:
|
||||
return 2;
|
||||
|
|
@ -1150,7 +1150,7 @@ AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel)
|
|||
return hwaccel ? hwaccel->next : first_hwaccel;
|
||||
}
|
||||
|
||||
AVHWAccel *ff_find_hwaccel(int codec_id, enum PixelFormat pix_fmt)
|
||||
AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt)
|
||||
{
|
||||
AVHWAccel *hwaccel=NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue