mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/apm: fix APM_FILE_HEADER_SIZE value
Value was incorrectly changed in 3bf1be2101
.
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
parent
8a3f561c34
commit
be3c10d551
@ -26,7 +26,7 @@
|
|||||||
#include "libavutil/internal.h"
|
#include "libavutil/internal.h"
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
|
|
||||||
#define APM_FILE_HEADER_SIZE 18
|
#define APM_FILE_HEADER_SIZE 20
|
||||||
#define APM_FILE_EXTRADATA_SIZE 80
|
#define APM_FILE_EXTRADATA_SIZE 80
|
||||||
#define APM_EXTRADATA_SIZE 28
|
#define APM_EXTRADATA_SIZE 28
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ static int apm_write_trailer(AVFormatContext *s)
|
|||||||
int64_t file_size, data_size;
|
int64_t file_size, data_size;
|
||||||
|
|
||||||
file_size = avio_tell(s->pb);
|
file_size = avio_tell(s->pb);
|
||||||
data_size = file_size - (APM_FILE_HEADER_SIZE + 2 + APM_FILE_EXTRADATA_SIZE);
|
data_size = file_size - (APM_FILE_HEADER_SIZE + APM_FILE_EXTRADATA_SIZE);
|
||||||
|
|
||||||
if (file_size >= UINT32_MAX) {
|
if (file_size >= UINT32_MAX) {
|
||||||
av_log(s, AV_LOG_ERROR,
|
av_log(s, AV_LOG_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user