Mercurial > libavformat.hg
comparison matroska.c @ 1452:5ac6f973ba2f libavformat
remove floats in 10 bytes/byte support (no version of matroska used it)
Patch by Steve Lhomme % slhomme A divxcorp P com %
Original thread:
Date: Nov 6, 2006 7:24 PM
Subject: [Ffmpeg-devel] [PATCH] no 10 bytes floats
author | gpoirier |
---|---|
date | Mon, 06 Nov 2006 19:01:03 +0000 |
parents | 48cfca624912 |
children | d7b946a1ec57 |
comparison
equal
deleted
inserted
replaced
1451:48cfca624912 | 1452:5ac6f973ba2f |
---|---|
628 | 628 |
629 if (size == 4) { | 629 if (size == 4) { |
630 *num= av_int2flt(get_be32(pb)); | 630 *num= av_int2flt(get_be32(pb)); |
631 } else if(size==8){ | 631 } else if(size==8){ |
632 *num= av_int2dbl(get_be64(pb)); | 632 *num= av_int2dbl(get_be64(pb)); |
633 } else if(size==10){ | |
634 av_log(matroska->ctx, AV_LOG_ERROR, | |
635 "FIXME! 10-byte floats unimplemented\n"); | |
636 return AVERROR_UNKNOWN; | |
637 } else{ | 633 } else{ |
638 offset_t pos = url_ftell(pb); | 634 offset_t pos = url_ftell(pb); |
639 av_log(matroska->ctx, AV_LOG_ERROR, | 635 av_log(matroska->ctx, AV_LOG_ERROR, |
640 "Invalid float element size %d at position %"PRIu64" (0x%"PRIx64")\n", | 636 "Invalid float element size %d at position %"PRIu64" (0x%"PRIx64")\n", |
641 size, pos, pos); | 637 size, pos, pos); |