提交 d5ffd641 authored 作者: blu's avatar blu

init

上级 59d3eb08
...@@ -240,8 +240,6 @@ private: ...@@ -240,8 +240,6 @@ private:
} }
while (response >= 0) { while (response >= 0) {
// Return decoded output data (into a frame) from a decoder
// https://ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga11e6542c4e66d3028668788a1a74217c
response = avcodec_receive_frame(pCodecContext, pFrame); response = avcodec_receive_frame(pCodecContext, pFrame);
if (response == AVERROR(EAGAIN) || response == AVERROR_EOF) { if (response == AVERROR(EAGAIN) || response == AVERROR_EOF) {
break; break;
...@@ -276,8 +274,6 @@ private: ...@@ -276,8 +274,6 @@ private:
FILE *f; FILE *f;
int i; int i;
f = fopen(filename,"w"); f = fopen(filename,"w");
// writing the minimal required header for a pgm file format
// portable graymap format -> https://en.wikipedia.org/wiki/Netpbm_format#PGM_example
fprintf(f, "P5\n%d %d\n%d\n", xsize, ysize, 255); fprintf(f, "P5\n%d %d\n%d\n", xsize, ysize, 255);
// writing line by line // writing line by line
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论