comparison matroskadec.c @ 3421:5667ba68090f libavformat

matroskadec: sane default value for track->time_scale
author aurel
date Tue, 03 Jun 2008 15:09:30 +0000
parents f386245ae6f7
children 6ff296d8b284
comparison
equal deleted inserted replaced
3420:8d4e4f414fc7 3421:5667ba68090f
1028 1028
1029 av_log(matroska->ctx, AV_LOG_DEBUG, "parsing track, adding stream..,\n"); 1029 av_log(matroska->ctx, AV_LOG_DEBUG, "parsing track, adding stream..,\n");
1030 1030
1031 /* Allocate a generic track. As soon as we know its type we'll realloc. */ 1031 /* Allocate a generic track. As soon as we know its type we'll realloc. */
1032 track = av_mallocz(MAX_TRACK_SIZE); 1032 track = av_mallocz(MAX_TRACK_SIZE);
1033 track->time_scale = 1.0;
1033 strcpy(track->language, "eng"); 1034 strcpy(track->language, "eng");
1034 1035
1035 /* try reading the trackentry headers */ 1036 /* try reading the trackentry headers */
1036 while (res == 0) { 1037 while (res == 0) {
1037 if (!(id = ebml_peek_id(matroska, &matroska->level_up))) { 1038 if (!(id = ebml_peek_id(matroska, &matroska->level_up))) {