comparison matroskadec.c @ 3280:30bf0c9f940d libavformat

matroskadec: fail gracefully when seeking don't work
author aurel
date Thu, 08 May 2008 23:11:13 +0000
parents 807c5f54e8b5
children a1d98736c15e
comparison
equal deleted inserted replaced
3279:807c5f54e8b5 3280:30bf0c9f940d
1914 before_pos = url_ftell(matroska->ctx->pb); 1914 before_pos = url_ftell(matroska->ctx->pb);
1915 1915
1916 /* seek */ 1916 /* seek */
1917 if ((res = ebml_read_seek(matroska, seek_pos + 1917 if ((res = ebml_read_seek(matroska, seek_pos +
1918 matroska->segment_start)) < 0) 1918 matroska->segment_start)) < 0)
1919 return res; 1919 goto finish;
1920 1920
1921 /* we don't want to lose our seekhead level, so we add 1921 /* we don't want to lose our seekhead level, so we add
1922 * a dummy. This is a crude hack. */ 1922 * a dummy. This is a crude hack. */
1923 if (matroska->num_levels == EBML_MAX_DEPTH) { 1923 if (matroska->num_levels == EBML_MAX_DEPTH) {
1924 av_log(matroska->ctx, AV_LOG_INFO, 1924 av_log(matroska->ctx, AV_LOG_INFO,