Skip to content

Commit 4f56f1a

Browse files
author
Clement Champetier
committed
VideoFrame: get error description when failing to get AVPicture size
1 parent 9c90c2d commit 4f56f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/data/decoded/VideoFrame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ size_t VideoFrame::getSize() const
7777

7878
const size_t size = avpicture_get_size(getPixelFormat(), getWidth(), getHeight());
7979
if(size == 0)
80-
throw std::runtime_error("unable to determine image buffer size");
80+
throw std::runtime_error("Unable to determine image buffer size: " + getDescriptionFromErrorCode(size));
8181
return size;
8282
}
8383

0 commit comments

Comments
 (0)