Closed Asd-g closed 2 years ago
const AVCodec *codec
means a pointer to const AVCodec object, so we can't modify the object the pointer points to, but we can modify the pointer itself. contrast that with
AVCodec *const codec = NULL;`, which means the pointer
variable itself is constant but we can modify the object the pointer points
to.
Or am I missing something?
Message ID: @.***>
You're right. I got confused them.
In
decode.c
there are two reassignments of const var: