comparison matroska.c @ 887:d70e50f1495f libavformat

COSMETICS: tabs --> spaces, some prettyprinting
author diego
date Thu, 22 Dec 2005 01:10:11 +0000
parents da1d5db0ce5c
children edbe5c3717f9
comparison
equal deleted inserted replaced
886:7ed1351f8c7e 887:d70e50f1495f
595 * 0 is success, < 0 is failure. 595 * 0 is success, < 0 is failure.
596 */ 596 */
597 597
598 static int 598 static int
599 ebml_read_float (MatroskaDemuxContext *matroska, 599 ebml_read_float (MatroskaDemuxContext *matroska,
600 uint32_t *id, 600 uint32_t *id,
601 double *num) 601 double *num)
602 { 602 {
603 ByteIOContext *pb = &matroska->ctx->pb; 603 ByteIOContext *pb = &matroska->ctx->pb;
604 int size, res; 604 int size, res;
605 uint64_t rlength; 605 uint64_t rlength;
606 606
903 if ((res = ebml_read_uint(matroska, &id, &num)) < 0) 903 if ((res = ebml_read_uint(matroska, &id, &num)) < 0)
904 return res; 904 return res;
905 if (num > sizeof(uint32_t)) { 905 if (num > sizeof(uint32_t)) {
906 av_log(matroska->ctx, AV_LOG_ERROR, 906 av_log(matroska->ctx, AV_LOG_ERROR,
907 "IDs of size %"PRIu64" (> %zu) not supported\n", 907 "IDs of size %"PRIu64" (> %zu) not supported\n",
908 num, sizeof(uint32_t)); 908 num, sizeof(uint32_t));
909 return AVERROR_INVALIDDATA; 909 return AVERROR_INVALIDDATA;
910 } 910 }
911 break; 911 break;
912 } 912 }
913 913