Unified · Split
| @@ -138,6 +138,9 @@ static av_cold int rl2_read_header(AVFormatContext *s, · 137 unmodified lines | ||
| 138 | 138 | |
| 139 | 139 | /** setup audio stream if present */ |
| 140 | 140 | if(sound_rate){ |
| 141 | + if(channels <= 0) | |
| 142 | + return AVERROR_INVALIDDATA; | |
| 143 | + | |
| 141 | 144 | pts_num = def_sound_size; |
| 142 | 145 | pts_den = rate; |
| 143 | 146 | |