Changeset 3846
- Timestamp:
- Oct 25, 2011 3:49:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjmedia/src/pjmedia/wav_player.c
r3553 r3846 463 463 fport = (struct file_reader_port*) port; 464 464 465 PJ_ASSERT_RETURN(bytes < fport->fsize - fport->start_data, PJ_EINVAL); 465 /* Check that this offset does not pass the audio-data (in case of 466 * extra chunk after audio data chunk 467 */ 468 PJ_ASSERT_RETURN(bytes < fport->data_len, PJ_EINVAL); 466 469 467 470 fport->fpos = fport->start_data + bytes; 471 fport->data_left = fport->data_len - bytes; 468 472 pj_file_setpos( fport->fd, fport->fpos, PJ_SEEK_SET); 469 473
Note: See TracChangeset
for help on using the changeset viewer.