Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb86d8d

Browse files
committed
Fix deprecated warnings into properties classes
1 parentda05a71 commitfb86d8d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎src/AvTranscoder/properties/DataProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void DataProperties::detectAncillaryData()
7373
detection =true;
7474
}
7575

76-
av_free_packet(&pkt);
76+
av_packet_unref(&pkt);
7777

7878
if(detection)
7979
break;

‎src/AvTranscoder/properties/PixelProperties.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ size_t PixelProperties::getMaxNbBitsInChannels() const
6464
size_t maxNbBitsInChannels =0;
6565
for(unsignedint channelIndex =0; channelIndex < _pixelDesc->nb_components; ++channelIndex)
6666
{
67-
constsize_t nbBits = _pixelDesc->comp[channelIndex].depth_minus1 +1;
67+
constsize_t nbBits = _pixelDesc->comp[channelIndex].depth;
6868
if(nbBits > maxNbBitsInChannels)
6969
maxNbBitsInChannels = nbBits;
7070
}
@@ -227,7 +227,7 @@ std::vector<Channel> PixelProperties::getChannels() const
227227
Channel c;
228228
c.id = channel;
229229
c.chromaHeight = (size_t)_pixelDesc->comp[channel].plane;
230-
c.bitStep = (size_t)_pixelDesc->comp[channel].step_minus1;
230+
c.bitStep = (size_t)_pixelDesc->comp[channel].step -1;
231231
channels.push_back(c);
232232
}
233233
return channels;

‎src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ size_t VideoProperties::analyseGopStructure(IProgress& progress)
558558
AVFrame& avFrame = frame.getAVFrame();
559559

560560
_gopStructure.push_back(
561-
std::make_pair(av_get_picture_type_char(avFrame.pict_type),av_frame_get_pkt_size(&avFrame)));
561+
std::make_pair(av_get_picture_type_char(avFrame.pict_type), avFrame.pkt_size));
562562
_isInterlaced = avFrame.interlaced_frame;
563563
_isTopFieldFirst = avFrame.top_field_first;
564564
if(avFrame.pict_type == AV_PICTURE_TYPE_I)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp