blob: 0ec810701d991f0884b217bd73f7a6981b7d47bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
In current version of ffmpeg the flag CODEC_FLAG_GLOBAL_HEADER has been renamed
and the deprecated raw picture API has been removed. This patch renames
CODEC_FLAG_GLOBAL_HEADER to AV_CODEC_FLAG_GLOBAL_HEADER and removes the use of
the dropped API.
--- occt-V7_3_0p3.bin/src/Image/Image_VideoRecorder.cxx
+++ occt-V7_3_0p3/src/Image/Image_VideoRecorder.cxx
@@ -283,7 +283,7 @@
// some formats want stream headers to be separate
if (myAVContext->oformat->flags & AVFMT_GLOBALHEADER)
{
- aCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
+ aCodecCtx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
}
return Standard_True;
#else
@@ -456,18 +456,6 @@
AVPacket aPacket;
memset (&aPacket, 0, sizeof(aPacket));
av_init_packet (&aPacket);
- if ((myAVContext->oformat->flags & AVFMT_RAWPICTURE) != 0
- && !theToFlush)
- {
- // raw video case - directly store the picture in the packet
- aPacket.flags |= AV_PKT_FLAG_KEY;
- aPacket.stream_index = myVideoStream->index;
- aPacket.data = myFrame->data[0];
- aPacket.size = sizeof(AVPicture);
-
- aResAv = av_interleaved_write_frame (myAVContext, &aPacket);
- }
- else
{
// encode the image
myFrame->pts = myFrameCount;
|