History

avformat/internal: Avoid casting const away

Fixes many warnings when using -Wcast-qual.

Andreas Rheinhardt committed 3 years ago

Commit 185d0ac1 parent 5f8c1131 file · +1 −1Browse files

Unified · Split

libavformat/internal.h+1−1
@@ -418,7 +418,7 @@ static av_always_inline FFStream *ffstream(AVStream *st) · 417 unmodified lines
418418
419419 static av_always_inline const FFStream *cffstream(const AVStream *st)
420420 {
421− return (FFStream*)st;
421+ return (const FFStream*)st;
422422 }
423423
424424 #ifdef __GNUC__

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t