Title / Description
Code #include "dict.h" #include "frame.h" #include "imgutils.h" #include "mem.h" #include "samplefmt.h" static void get_frame_defaults(AVFrame *frame) { if (frame->extended_data != frame->data) av_freep(&frame->extended_data); memset(frame, 0, sizeof(*frame)); frame->pts = AV_NOPTS_VALUE; frame->key_frame = 1; frame->sample_aspect_ratio = (AVRational){ 0, 1 }; frame->format = -1; /* unknown */ frame->extended_data = frame->data; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code