Browse code

flv: Use the correct type to hold the file offset

Luca Barbato authored on 2013/12/19 15:38:15
Showing 1 changed files
... ...
@@ -506,7 +506,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
506 506
 
507 507
     if (enc->codec_type == AVMEDIA_TYPE_DATA) {
508 508
         int data_size;
509
-        int metadata_size_pos = avio_tell(pb);
509
+        int64_t metadata_size_pos = avio_tell(pb);
510 510
         avio_w8(pb, AMF_DATA_TYPE_STRING);
511 511
         put_amf_string(pb, "onTextData");
512 512
         avio_w8(pb, AMF_DATA_TYPE_MIXEDARRAY);