Skip to content

Commit fa1b5c8

Browse files
author
Clement Champetier
committed
decoders: updated exception message in case of error while decoding
1 parent 8fd9004 commit fa1b5c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AvTranscoder/decoder/AudioDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ bool AudioDecoder::decodeNextFrame(Frame& frameBuffer)
9797
&got_frame, &data.getAVPacket());
9898
if(ret < 0)
9999
{
100-
throw std::runtime_error("an error occured during audio decoding" + getDescriptionFromErrorCode(ret));
100+
throw std::runtime_error("An error occured during audio decoding: " + getDescriptionFromErrorCode(ret));
101101
}
102102

103103
// if no frame could be decompressed

src/AvTranscoder/decoder/VideoDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ bool VideoDecoder::decodeNextFrame(Frame& frameBuffer)
9595
&got_frame, &data.getAVPacket());
9696
if(ret < 0)
9797
{
98-
throw std::runtime_error("an error occured during video decoding - " + getDescriptionFromErrorCode(ret));
98+
throw std::runtime_error("An error occured during video decoding: " + getDescriptionFromErrorCode(ret));
9999
}
100100

101101
// if no frame could be decompressed

0 commit comments

Comments
 (0)