Changeset b643a33 for src/io/source_avcodec.c
- Timestamp:
- Apr 21, 2016, 7:01:50 PM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 26a6af7
- Parents:
- ae5d58a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
rae5d58a rb643a33 85 85 s->hop_size = hop_size; 86 86 s->channels = 1; 87 s->path = path; 87 88 if (s->path) AUBIO_FREE(s->path); 89 s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX)); 90 strncpy(s->path, path, strnlen(path, PATH_MAX)); 88 91 89 92 // register all formats and codecs … … 425 428 av_frame_free( &(s->avFrame) ); 426 429 } 430 if (s->path) AUBIO_FREE(s->path); 427 431 s->avFrame = NULL; 428 432 AUBIO_FREE(s);
Note: See TracChangeset
for help on using the changeset viewer.