blob: b71dffcc3dd462b3ca1bfb8b0c3ac97eb39bdbc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- flvenc.c.org 2003-09-06 17:56:37.000000000 +0000
+++ avifile-0.7-0.7.38/ffmpeg/libavformat/flvenc.c 2003-09-06 17:51:55.000000000 +0000
@@ -224,13 +224,15 @@
static int flv_write_trailer(AVFormatContext *s)
{
+ int64_t file_size ;
+ int flags = 0;
ByteIOContext *pb = &s->pb;
FLVContext *flv = s->priv_data;
Dump(flv,pb,1);
- int64_t file_size = url_ftell(pb);
- int flags = 0;
+ file_size = url_ftell(pb);
+
flags |= flv->hasAudio ? 4 : 0;
flags |= flv->hasVideo ? 1 : 0;
url_fseek(pb, 4, SEEK_SET);
|