FreeCalypso > hg > gsm-codec-lib
comparison amrconv/cod-parse.c @ 212:0beafaa0623f
amr-cod-parse: handle Mode=-1 in NO_DATA frames
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 20 Apr 2023 02:23:35 +0000 |
| parents | 78d1a6513393 |
| children |
comparison
equal
deleted
inserted
replaced
| 211:78d1a6513393 | 212:0beafaa0623f |
|---|---|
| 51 if (!rc) | 51 if (!rc) |
| 52 break; | 52 break; |
| 53 type = input_bits[0]; | 53 type = input_bits[0]; |
| 54 mode = input_bits[245]; | 54 mode = input_bits[245]; |
| 55 printf("#%u: Type=%u Mode=%u", frame_no, type, mode); | 55 printf("#%u: Type=%u Mode=%u", frame_no, type, mode); |
| 56 if (type == TX_NO_DATA) { | |
| 57 printf(" (NO_DATA)\n"); | |
| 58 continue; | |
| 59 } | |
| 56 if (type > TX_NO_DATA || mode > MR122) { | 60 if (type > TX_NO_DATA || mode > MR122) { |
| 57 printf(" (unsupported)\n"); | 61 printf(" (unsupported)\n"); |
| 58 continue; | 62 continue; |
| 59 } | 63 } |
| 60 printf(" (%s %s)\n", amr_mode_names[mode], type_names[type]); | 64 printf(" (%s %s)\n", amr_mode_names[mode], type_names[type]); |
