aboutsummaryrefslogtreecommitdiffstats
path: root/libav/ffm.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-10-22 09:23:14 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-10-22 09:23:14 +0000
commit3b4b29dcd9c5da2ba40a34ce3d9eb3a7f659ba77 (patch)
tree947a2f10246251d9acaa3977264570041424deba /libav/ffm.c
parentd4c0ff917dac14258d289807a6d80b6b45daa8ff (diff)
downloadffmpeg-3b4b29dcd9c5da2ba40a34ce3d9eb3a7f659ba77.tar.gz
put/get portable for IEEE double - renamed put_native_string/get_native_string
Originally committed as revision 1062 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/ffm.c')
-rw-r--r--libav/ffm.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libav/ffm.c b/libav/ffm.c
index 45bfbcb7ce..dba0886543 100644
--- a/libav/ffm.c
+++ b/libav/ffm.c
@@ -166,14 +166,14 @@ static int ffm_write_header(AVFormatContext *s)
put_be16(pb, (int) (codec->qcompress * 10000.0));
put_be16(pb, (int) (codec->qblur * 10000.0));
put_be32(pb, codec->bit_rate_tolerance);
- put_native_string(pb, codec->rc_eq);
+ put_strz(pb, codec->rc_eq);
put_be32(pb, codec->rc_max_rate);
put_be32(pb, codec->rc_min_rate);
put_be32(pb, codec->rc_buffer_size);
- put_native_double(pb, codec->i_quant_factor);
- put_native_double(pb, codec->b_quant_factor);
- put_native_double(pb, codec->i_quant_offset);
- put_native_double(pb, codec->b_quant_offset);
+ put_be64_double(pb, codec->i_quant_factor);
+ put_be64_double(pb, codec->b_quant_factor);
+ put_be64_double(pb, codec->i_quant_offset);
+ put_be64_double(pb, codec->b_quant_offset);
put_be32(pb, codec->dct_algo);
break;
case CODEC_TYPE_AUDIO:
@@ -420,14 +420,14 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
codec->qcompress = get_be16(pb) / 10000.0;
codec->qblur = get_be16(pb) / 10000.0;
codec->bit_rate_tolerance = get_be32(pb);
- codec->rc_eq = strdup(get_native_string(pb, rc_eq_buf, sizeof(rc_eq_buf)));
+ codec->rc_eq = strdup(get_strz(pb, rc_eq_buf, sizeof(rc_eq_buf)));
codec->rc_max_rate = get_be32(pb);
codec->rc_min_rate = get_be32(pb);
codec->rc_buffer_size = get_be32(pb);
- codec->i_quant_factor = get_native_double(pb);
- codec->b_quant_factor = get_native_double(pb);
- codec->i_quant_offset = get_native_double(pb);
- codec->b_quant_offset = get_native_double(pb);
+ codec->i_quant_factor = get_be64_double(pb);
+ codec->b_quant_factor = get_be64_double(pb);
+ codec->i_quant_offset = get_be64_double(pb);
+ codec->b_quant_offset = get_be64_double(pb);
codec->dct_algo = get_be32(pb);
break;
case CODEC_TYPE_AUDIO: