Ticket #2839: patch2.diff
| File patch2.diff, 549 bytes (added by , 13 years ago) |
|---|
-
libavformat/utils.c
3454 3457 AVChapter *chapter = NULL; 3455 3458 int i; 3456 3459 3457 for(i= 0; i<s->nb_chapters; i++)3458 if(s->chapters[i]->id == id) 3460 for(i=s->nb_chapters-1; i>=0; i--) { 3461 if(s->chapters[i]->id == id) { 3459 3462 chapter = s->chapters[i]; 3463 break; 3464 } 3465 } 3460 3466 3461 3467 if(!chapter){ 3462 3468 chapter= av_mallocz(sizeof(AVChapter));
