Skip to content

Commit 5190b9f

Browse files
committed
Fix typo in the CodecContext::setWidth()
1 parent 5bfa610 commit 5190b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codeccontext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class VideoCodecContext : public CodecContextBase<Clazz, _direction, AVMEDIA_TYP
322322

323323
void setWidth(int w) // Note, it also sets coded_width
324324
{
325-
if (isValid() & !isOpened())
325+
if (isValid() && !isOpened())
326326
{
327327
m_raw->width = w;
328328
m_raw->coded_width = w;

0 commit comments

Comments
 (0)